Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ public object FileOperations([FromBody] FileManagerDirectoryContent args)
//[HttpPost]
[Route("Upload")]
[Authorize(Roles = "Admin")]
public IActionResult Upload(string path, IList<IFormFile> uploadFiles, string action)
[DisableRequestSizeLimit]
public IActionResult Upload(string path, long size,IList<IFormFile> uploadFiles, string action)
{
FileManagerResponse uploadResponse;
foreach (var file in uploadFiles)
{
var folders = (file.FileName).Split('/');
var folders = (file.FileName ?? string.Empty).Split('/');
// checking the folder upload
if (folders.Length > 1)
{
Expand All @@ -115,7 +116,7 @@ public IActionResult Upload(string path, IList<IFormFile> uploadFiles, string ac
}
}
}
uploadResponse = operation.Upload(path, uploadFiles, action, null);
uploadResponse = operation.Upload(path, uploadFiles, action, size);
if (uploadResponse.Error != null)
{
Response.Clear();
Expand Down
Loading
Loading