#7 Updating status of unprocessed files
This commit is contained in:
parent
39ed026bb0
commit
ea509992af
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user