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;
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dstol’s picture

Status: Active » Needs review
FileSize
643 bytes

Here's a quick fix, it made need some more work.

dstol’s picture

FileSize
641 bytes

Correcting a misspelling.