Upload fix for drag and drop cases