Fix upload_files