Uploading the file on S3 guarantees that any connection drops between the application and the source of the file do not affect the migration process.