When I try to add an image using the new image upload facility it fails on "Upload Image". I can select a file, but when I hit "Upload" the file name appears in the field, but then disappears. The file is uploading to the server correctly, but the uploader "loses" it.

I believe the problem is that the image uploader is attempting to insert "files/images/filename.jpg" into the editor, when the file is located at "/files/images/filename.jpg". The editor is checking if "files" exists, but as it doesn't it resets to a blank upload. This is testable by typing in both paths manually (the second works). This may be server specific, as we don't use the Default drupal site, but have multiples installed.

In any case, it should be easy to resolve.

Comments

Gabriel R.’s picture

I have the same issue. I'll try to fix this, but I'm not that skilled in PHP.

mkearl’s picture

Version: 5.x-2.6-95 » 6.x-1.2-95
Assigned: Unassigned » mkearl
Priority: Normal » Critical

Same issue here. I tried creating a folder with 777 permissions files/images/, but nothing. Looks like it's trying to upload somewhere or somehow and can't. I'm not sure what I need to do to fix this.

mkearl’s picture

Assigned: mkearl » Unassigned

I tried a fresh install and tons of other tweaks without getting into the code and I couldn't figure it out. Anyone?

Derferman’s picture

I have the same problem. The actual image upload works fine, but the image is "lost" to the field.

cassus’s picture

Same here!

Please fix it!

mkearl’s picture

I turned off the clean URL's and could get the image to appear (while editing), however, once you publish, no worky. It's gone.

Goose4all’s picture

same problem.. anyone with a fix? i went through the code but wasnt able to find the issue cause of i am a noob...

please..

thanks!
Andreas

jeffcd’s picture

Status: Active » Closed (fixed)

Try using the latest version (6.x-1.2-96). This should be fixed now.

On another note:
If you are seeing the Only local images are allowed. tag stripped after you submit the page, then it's probably due to the 'input format' you are using for the field where the content is entered. For instance, if you choose the default 'Filtered HTML'....