Chunk file sent twice

Hi,

I use SfUploder in Syncfusion.Blazor 18.3.0.52 nuget package version with Chunk file setting, when uploading files, both chunkFiles and UploadFiles parameters in my action controller (see below) contains one item (the part of file) in same time which double the length of my request on the web between Front and Controller.
Please how can fix this.

 [HttpPost("[action]")]  
 public async Task Save(IList<IFormFile> chunkFile, IList<IFormFile> UploadFiles)  

Thank you in advance.
Best regards.

1 Reply 1 reply marked as answer

SN Sevvandhi Nagulan Syncfusion Team January 4, 2021 07:59 AM UTC

Hi Radouane, 


Greetings from Syncfusion support. 


We checked your query. We would like to inform you that both the chunkFile and UploadFiles keys will contain the files in the 0th chunk file. If you upload a file that is equal or smaller than ChunkSize, the uploader component will act as a normal uploader in that case. We will save the file using the UploadFiles key if it is a normal uploader. We can get the file on both keys to handle the case as mentioned in previous line. So we recommend that you get the file from the chunkFile keys to save the file. Please find the UG link documentation for chunk file upload. 






Please check the above suggestion and get back to us if you need further assistance. 


Regards, 
Sevvandhi N 


Marked as answer
Loader.
Up arrow icon