File Attachement urls when creating content different from actual url for uploaded content

cavalry - April 23, 2009 - 03:23

Hi everyone! This is my first time in the drupal forums and I bet I will be here a lot more, haha.

I am having a problem with my File Attachment module when creating content.

When I upload a picture for example the url below the upload says:
http://www.cavalryrecords.com/system/files/imagefile.jpg
so naturally when I want to add a picture to my blog I copy the url and put it in the image url section on my FCK Editor, and viola my image shows up on the page.

But when I do this with the url above nothing shows up and I get a small picture of a page ripping in two (broken url I assume)

but when I change the url to: http://www.cavalryrecords.com/sites/default/files/imagefile.jpg
The image shows up! I checked my image upload, File system, and image section in administer and all of the directories are pointed at:
sites/default/files which is the url where pictures show up.

However how do I get the right url to show up after I attach a file instead of the one that doesnt work when I put it into the FCK editor?
Thanks!

EDIT: I just found out that both urls show the files:
http://www.cavalryrecords.com/system/files/imagefile.jpg
and
http://www.cavalryrecords.com/sites/default/files/imagefile.jpg

but the first url ONLY works after saving the post and publishing it... the second works before AND after.

still need help with this!

cavalry - April 23, 2009 - 15:28

still need help with this!

still haven't figured it

cavalry - April 26, 2009 - 21:32

still haven't figured it out...

 
 

Drupal is a registered trademark of Dries Buytaert.