G2A Many GEOs
SHARE
TWEET

BOA image field file path

Juc1 Nov 18th, 2014 (edited) 149 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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?
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top