We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Upload failed in Edge and in Ipad, Iphone using multipart/form-data

using uploadbox with Syncfusion.EJ, Version=16.1600.0.32 in a form withenctype="multipart/form-data.In controller we have [Post] action with parameterIFormCollection in which Files.Count is 0 (in Edge) uploadbox arrives inside key but with value 0. In FF and Chrome is ok.
The same upload fails using ipad and iphone.

5 Replies

PO Prince Oliver Syncfusion Team July 2, 2019 06:50 AM UTC

Hi Boryana,  
Greetings from Syncfusion support. 
We have checked the reported issue by uploading files using Synchronous upload during form submit with enctype="multipart/form-data”. We were able to get the uploaded file details in IFormCollection with edge browser. Please refer to the below given screenshot.  
You can also use an alternate option with IFormFile to get the file details in controller action. Please refer to the below code used in our sample.  
<form asp-action="UploadFiles" enctype="multipart/form-data"> 
    <ej-upload-box id="UploadDefault" width="100px"  async-upload="false"> 
        <e-button-text browse="File Browse" /> 
    <input type="submit" /> 
        public IActionResult UploadFiles(IList<IFormFile> UploadDefault) 
            long size = 0; 
            foreach (var file in UploadDefault) 
                var filename = Path.GetFileName(UploadDefault[0].FileName); 
                filename = hostingEnv.WebRootPath + $@"\{filename}"; 
                ViewBag.FileName = filename; 
                size += file.Length; 
                using (FileStream fs = System.IO.File.Create(filename)) 
            return View("UploadFeatures"); 
We have attached a sample for your reference which can be downloaded from the below given link 
Let us know if you need any further assistance on this. 

BP Boryana Panayotova July 3, 2019 07:18 AM UTC

Thank you very much for the response,
what I see after form submission is 

I saw that is used JavaScript API

PO Prince Oliver Syncfusion Team July 4, 2019 09:58 AM UTC

Hi Boryana,   

Thank you for the screenshot. It seems that the files are returned correctly during the form submission. Let us know if you need any further assistance on this. 


BP Boryana Panayotova July 4, 2019 11:05 AM UTC

Actually, there are no files and key named uploadbox is empty

PO Prince Oliver Syncfusion Team July 5, 2019 07:28 AM UTC

Hi Boryana,    

Thank you for your update. 

We were unable to replicate your reported issue in your end. We need more information on this issue to replicate it in our end. Please share us sufficient code or a sample that replicates the issue. This will help us validate and provide a prompt solution. 


Live Chat Icon For mobile
Up arrow icon