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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





145614 Jul 1,2019 10:39 AM UTC Jul 5,2019 07:28 AM UTC ASP.NET Core 5
Tags: UploadBox
Boryana Panayotova
Asked On July 1, 2019 10:39 AM UTC

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.

Prince Oliver [Syncfusion]
Replied On 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. 

Boryana Panayotova
Replied On 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

Prince Oliver [Syncfusion]
Replied On 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. 


Boryana Panayotova
Replied On July 4, 2019 11:05 AM UTC

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

Prince Oliver [Syncfusion]
Replied On 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. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon