Fix CreateFile with int folderId

This commit is contained in:
Alexey Safronov 2021-08-02 21:29:55 +03:00
parent 4a977d711b
commit 57bab78cf2

View File

@ -1059,8 +1059,15 @@ namespace ASC.Web.Files
await CreateFile(context, GlobalFolderHelper.FolderMy);
}
else
{
await CreateFile(context, folderId);
{
if (int.TryParse(folderId, out var id))
{
await CreateFile(context, id);
}
else
{
await CreateFile(context, folderId);
}
}
}