fix file uploading from resuming: sometimes the file was not saved before the filesystem crashed