Request with file to web API
I have a problem with the application sending the file to the web service. This is my endpoint/controller.
I have a problem with the application sending the file to the web service. This is my endpoint/controller.
I am using <input type="file" id="fileUpload" runat="server"> to upload a file in an ASP.NET application. I would like to limit the file type of the upload (example: limit to .xls or .xlsx file extensions).
How can I get an ASP.net web form (v3.5) to post a file using a plain old <input type="file" />?
For an application I’m working on, I need to allow the user to upload very large files–i.e., potentially many gigabytes–via our website. Unfortunately, ASP.NET MVC appears to load the entire request into RAM before beginning to service it–not exactly ideal for such an application. Notably, trying to circumvent the issue via code such as the following:
I am looking for any best practices or ideas on how you would create an interface with a DB from a .NET web application to upload data from Excel files
Should I use a mechanism that allows all the records to be loaded and flags the errors or should I use a mechanism that stops the load when an error occurs.
File name and extension are empty. Please help.
I searched SO and found this question, but it’s not quite what I’m asking. I’m wondering if a IHttpModule can be created that can inspect the ContentLength of the request, and if so either redirect or somehow throw that request out and create a new one.
I’m setting up a server for a client (something I don’t typically do), and I’m running into issues with uploading larger files (11MB). The server is running Windows 7 Professional with IIS added.
I’m looking to allow a user to browse and upload a file to the server in my ASP.NET MVC application.
Is there any way to upload entire folder (a folder) in asp.net?