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

Veazer - October 13, 2009 - 07:30

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

-Shaman- - October 13, 2009 - 12:33

It's chmod problem instead of 644 there's 600.

#3

jlebeau - October 13, 2009 - 22:17

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

-Shaman- - October 14, 2009 - 11:44

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

-Shaman- - October 15, 2009 - 14:48

I made patch which solves this.

AttachmentSize
chmod0766.patch 849 bytes

#6

jlebeau - November 4, 2009 - 23:10

@-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 ...

 
 

Drupal is a registered trademark of Dries Buytaert.