Cannot upload images, path appears momentarily then vanishes
Veazer - October 13, 2009 - 06:47
| Project: | YUI Rich Text Editor |
| Version: | 6.x-2.33 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Setup:
Drupal 6.14, fresh install no other modules
yui-6.x-1.1-rc2
yui_editor-6.x-2.33
Host: Awardspace free account, just testing at the moment
After enabling the upload feature, if i browse for an image and click upload the browser just shows that it is active then stops but doesn't insert any image. I noticed a flash in the path field so i finally got a screen cap and saw that the URL is pointed to /sites/default/files/imagename.jpg. If i type the URL path manually then it works, so the image has indeed uploaded. Any ideas why this is occurring?

#1
UPDATE: A little more info...
The only way i can get an image to be inserted is if i manually type the URL and the click save or click in the editing area as my next action. If I attempt to change the border, layout, etc. then the URL field immediately reverts to 'Image URL here'. It seems to only be an issue with relative paths, if i use the full URL then the URL doesn't go away.
#2
It's chmod problem instead of 644 there's 600.
#3
I think this bug is a duplicate of http://drupal.org/node/426746
@shaman : are you talking about sites/default/files chmod ? mine is 644 (i try 77 too), but this don't work for me too..
#4
I'm talking about uploaded pictures chmod, the module should chmod them 644 not leave them as they are, because settings at servers usually are 600 for any files, so they're not visible.
#5
I made patch which solves this.
#6
@-Shaman- : thanks for your patch, i use it (but in modules/yui_editor/plugins/img_upload.inc, where the code is here), it set the good chmod, but still don't work : the image url appear in a flash, and the url field become again blank ...