Posted by cryder11 on June 18, 2012 at 7:36pm
A few times this has happened now an I am not sure where to turn. Our hosting company is not sure what the problem is either. We are on drupal 6.26,. the other day, I attached 2 pdfs and the links to them worked perfectly fine. However the next day the files have disappeared and the links broken,making for some high level anxiety. Our hoster thinks many be something to with a cron job than ran just before the first time the files were missing, but I know nothing about cron jobs. What is the best way to figure out how to fix this problem? Thank you
Comments
Make sure you're setting the
Make sure you're setting the status of the file to permanent, otherwise Drupal will delete the file on cron as part of its clean up process.
http://api.drupal.org/api/drupal/includes%21file.inc/function/file_set_s...
Not setting temp or perm
Thanks Tom,
By what I have been reading, I have also learned about the perm v temp file statu and the crom jobs. I have not ever had to set any file status to 0 or 1 so I am not sure why all of a sudden some of my files are being coded as temporary. When I attach a file, I make sure to press submit/save which I think may be one way a temp files gets made if the final save is not pressed. However, we have seen the files listed on the edit page, so we think there is some other way the files become temporary. Can you think of any other way this might happen?
php.ini file upload size limit exceeded?
Does php.ini or related upload limits apply? The file should not have finished uploading, as apache should have canceled the upload when the php.ini limit(s) were exceeded. Do check the involved file sizes.
Peter
LA's Open Source User Group Advocate - Volunteer at DrupalCamp LA July 28,29 2012
Co-Founder of LAMPsig.org - Member of LADrupal.Org