File Upload not working in Chrome

2,472 views
Skip to first unread message

Durga Rath

unread,
Oct 6, 2016, 9:40:54 AM10/6/16
to Chromium-discuss
Hi,

I am using the "HttpRequestBase" class's method to access the file to be uploaded in my MVC application.

The code block I am using in View is
<input type="file" name="myFile" id="myFile">

And jQuery section is
var myFile = document.getElementById('myFile');
if (myFile.files.length > 0) {
    mydata.append("uploadedfile", myFile.files[0]);
}

And the controller block is
var content = Request.Files["uploadedfile"];
                if (fileContent == null || fileContent.ContentLength <= 0)
                {
                    //Display Error
                }
else {
//Process file
}

Finally when I am trying to run the application, I am getting the "Error" block getting executed. This happens only for Chrome v 53.0.2785.116 m. We have not faced this issue with earlier version of Chrome, and also not getting this issue with any other browser.

Can you please help me here as what went wrong for this chrome version and how to overcome this issue?

Thanks,
Durga 

PhistucK

unread,
Oct 6, 2016, 11:42:39 AM10/6/16
to durgara...@yahoo.com, Chromium-discuss
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

Be sure to follow the network bug reporting guidelines to attach a network log and provide a URL to a page that reproduces the problem in the comments of the created or found issue (unless you find an issue that is already confirmed and in development).
You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Reply all
Reply to author
Forward
0 new messages