#7 Updating status of unprocessed files

This commit is contained in:
Hamid Reza Mohammadi 2020-10-02 12:35:33 +03:30
parent 39ed026bb0
commit ea509992af

View File

@ -403,6 +403,13 @@ namespace RMuseum.Services.Implementation
//remove session files (house keeping)
foreach(UploadSessionFile file in session.UploadedFiles)
{
if(!file.ProcessResult)
{
file.ProcessResultMsg = "فایل xml یا mp3 متناظر این فایل یافت نشد.";
file.ProcessResult = true;
context.Update(file);
await context.SaveChangesAsync();
}
if(File.Exists(file.FilePath))
{
try