Uploading images work fine and are displayed fine, but after a while they are removed! It seems like it takes 30 minutes or so, but I cannot trigger it by running cron or anything else I can think of.

CommentFileSizeAuthor
#6 yui_editor.patch372 bytesjohn morahan

Comments

JonMB’s picture

Is it being removed from the HTML code? Or is it still there but not displaying?

Rustan’s picture

The file is removed from the server. The link is still there.

Rustan’s picture

Sorry, forgot to add that I use a local yui 2.5.2 library. I have Private Uploads installed but now deactivated, no other modules that do anything with files.

Fett’s picture

I have also encountered this error. Like Rustan said, the links/html is all still there but the file is gone. If I manually paste the file back into the folder everything works and the file doesn't disappear again.

ikok’s picture

Hi all,

I'm facing the same problem,

after finding more details, i've found that all the images that i uploaded through YUI, got their status as Temporary files and from what i understand the temporary files would disappear after a while by default.

hope this useful

now,i'm asking my friend who could do php programing to help me on this and would let you know if we could fix this problem.

update : here is what my friend told me

add
file_set_status($file, FILE_STATUS_PERMANENT);
to the .module (YUI module, i guess) then all the image files uploaded should have their status as Permanent already... this should solve the problem =)

i've upload the screenshot here
http://macmuemai.com/sites/default/files/2008-10-03_200058.jpg

hope this help
:D

john morahan’s picture

Status: Active » Needs review
StatusFileSize
new372 bytes

Here's the above "patch" in non-image form.

For reference, see http://api.drupal.org/api/function/file_save_upload/6 - the image is initially saved as a temporary file.

john morahan’s picture

Hmm, looks like this is already fixed in -dev. Any chance of a release? ;)

jeffcd’s picture

Status: Needs review » Closed (fixed)

Shall be released shortly.