Fail upload if metadata stripping fails

This commit is contained in:
Kieran
2023-04-07 19:59:31 +01:00
parent 5192030be0
commit de975be92f

View File

@@ -79,8 +79,8 @@ public class LocalDiskFileStore : StreamFileStore, IFileStore
}
else
{
// move orig file back
File.Move(srcPath, finalPath);
File.Delete(srcPath);
throw new Exception("Failed to strip metadata, please try again");
}
}