Fix drag and drop file upload bug