Subscribe RSS

Archive for the Category "Uncategorized"

Drupal Bug Fix: Image Uploads Nov 19

I keep coming across variations of the same basic PHP coding error.  Last time it was a Joomla FTP installer issue, this time it’s a Drupal upload issue.  This is becoming a real pet peeve…

In Drupal 6.5 (and probably others), in the file “includes/file.inc“, the function named “file_save_upload()” does things out of order.  It is used to validate an uploaded file, but it tries to perform checks on the uploaded file before it calls PHP’s “move_uploaded_file()” function to move it out of the temporary upload area and into the user’s file space.
more…