Advertisement
Juc1

BOA image field file path

Nov 18th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. upgrading from D6 (not BOA) to D7 (BOA)
  2.  
  3. My D7 BOA site has an image field which is stored in /files/my-image-field and shows in the database as /files/my-image-field/example.jpg
  4.  
  5. so the image path should be
  6.  
  7. example.com/files/my-image-field/example.jpg
  8.  
  9. but on the page the images do not load (404) because a horrible prefix has been added =
  10.  
  11. example.com/sites/example.com/files/files/my-image-field/example.jpg
  12.  
  13. I think this prefix comes from Public file system path in admin/config/media/file-system
  14.  
  15. so my question please - what should my public file system path be and can I make my image field path work as
  16.  
  17. example.com/files/my-image-field/example.jpg
  18.  
  19. or must it have some kind of prefix like
  20.  
  21. example.com/sites/example.com/files/files/my-image-field/example.jpg
  22.  
  23. If it must have a prefix then does that mean I need to rewrite all the paths for this field in my database ie to add the prefix?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement