Hi folks,

I need this module to set the uid in the files table. I've got the code for the fix here (pretty simple stuff) but I'm not so good with the patch process. I apologize if I'm doing this wrong!

This goes at line 363 of file_import.module, and basically adds the global $user; line as well as adding the uid field to the INSERT statement.

          if (file_move($filename, $new_filename)) {
            global $user;
            db_query(
             "INSERT INTO {files}
              (filename, filepath, filemime, filesize, uid, status, timestamp)
              VALUES ('%s', '%s', '%s', %d, %d, %d, %d)",
              $origname,
              $filename,
              content_type($filename),
              filesize($filename),
              $user->uid,
              1, // status (1 = permanent, 0=temporary)
              time());

Best regards,
Tom