Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On sites with multiple web servers, uploads using the browser upload feature fail due to unshared temporary directories, which is a common set up.
The cause of this is file_save_upload is passed without a $dest parameter:
function _user_import_file($import_id = NULL, $ftp_file_selected = NULL) {
static $file;
if (!empty($file)) return $file;
// file was uploaded through browser
$file = file_save_upload('file_upload');
if (!empty($file) ) return $file;
Comment | File | Size | Author |
---|---|---|---|
#2 | 1974066-2-change-tmp-dir.patch | 641 bytes | dstol |
#1 | 1974066-1-change-tmp-dir.patch | 643 bytes | dstol |
Comments
Comment #1
dstolHere's a quick fix, it made need some more work.
Comment #2
dstolCorrecting a misspelling.