validphys.loader.download_file should fail for partial downloads
Created by: Zaharid
Right now if the download is cancelled in the middle, the user will get a file with the requested name, but corrupted. Subsequent attempts to use the file will fail at runtime. Instead we should download to a temporary file (but in the same folder, rather than /tmp
) and move (rename) the file, only after the download has succeeded.