tagged [file-upload]

HTML - Display image after selecting filename

HTML - Display image after selecting filename I have a form that allows me with to browse and select a file. What I want to do is display that image immediately after the image has been selected. And ...

23 May at 12:2

Increase upload file size in Asp.Net core

Increase upload file size in Asp.Net core Currently, I am working with Asp.Net Core and MVC6 need to upload file size unlimited. I have searched its solution but still not getting the actual answer. [...

Getting "Cannot access a closed file" errormessage when getting file from session

Getting "Cannot access a closed file" errormessage when getting file from session I have a asp.net FileUpload control. I can successfully upload file to store in session, but when I am tring to get it...

How to upload images to server in Flutter?

How to upload images to server in Flutter? I would like to upload a image, I am using http.Client() for making requests, ``` static uploadImage(String id, File file) { var httpClient = createHttpClie...

Uploading images using Node.js, Express, and Mongoose

Uploading images using Node.js, Express, and Mongoose Since many new Node.js libraries are quickly being rendered obsolete and there are relatively few examples anyways I want to ask about uploading i...

ASP.NET - Limit file upload available file types

ASP.NET - Limit file upload available file types I have added a file upload to my asp.net website. However, I want to limit the file types that user can select. For example, I only the user to select ...

13 Dec at 15:14

How to clear file upload text in server side (c#)

How to clear file upload text in server side (c#) I want to clear the file path from the file upload. The file upload is inside the update panel and I am using a `AsyncFileUpload`. How can I clear the...

Check upload file for virus in MVC3

Check upload file for virus in MVC3 How can i check upload file for virus before store it? I previously read this topic,but how can i do it programmatic and return result for user? > The best way to a...

How to handle large file uploads via WCF?

How to handle large file uploads via WCF? I am looking into using WCF for a project which would require the ability for people to upload large files (64MB-1GB) to my server. How would I handle this wi...

20 Dec at 06:29

Upload file to FTP using C#

Upload file to FTP using C# I try upload a file to an FTP-server with C#. The file is uploaded but with zero bytes. ``` private void button2_Click(object sender, EventArgs e) { var dirPath = @"C:/Do...

16 Aug at 06:23

This application has no explicit mapping for /error

This application has no explicit mapping for /error I used maven to do the tutorial [https://spring.io/guides/gs/uploading-files/](https://spring.io/guides/gs/uploading-files/) All the codes I used wa...

2 May at 20:22

FileUpload Doesn't Work When Nested In UpdatePanel? C#

FileUpload Doesn't Work When Nested In UpdatePanel? C# ```

How to convert a multipart file to File?

How to convert a multipart file to File? Can any one tell me what is a the best way to convert a multipart file (org.springframework.web.multipart.MultipartFile) to File (java.io.File) ? In my spring ...

Read excel file from a stream

Read excel file from a stream I need a way to read a Excel file from a stream. It doesn't seem to work with the ADO.NET way of doing things. The scenario is that a user uploads a file through a FileUp...

Validation of file extension before uploading file

Validation of file extension before uploading file I am uploading images to a servlet. The validation whether the uploaded file is an image is done in server side only, by checking the magic numbers i...

How do I Validate the File Type of a File Upload?

How do I Validate the File Type of a File Upload? I am using `` 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 exte...

bootstrap 4 file input doesn't show the file name

bootstrap 4 file input doesn't show the file name I have a problem with the custom-file-input class in Bootstrap 4. after I chose which file I want to upload the filename do not show. I use this code:...

foreach on Request.Files

foreach on Request.Files I'm attempting upload multiple files in ASP.NET MVC and I have this simple foreach loop in my controller The previous code generates this error: What I don't unders

2 Sep at 03:46

How to instantiate a HttpPostedFile

How to instantiate a HttpPostedFile I'm trying to communicate with a system which I have no control over, however one of its methods takes in a HttpPostedFile were in my code I have a byte array. Does...

9 Apr at 20:7

Determine if uploaded file is image (any format) on MVC

Determine if uploaded file is image (any format) on MVC So I'm using this code for view: This for model: ``` [HttpPost] public ActionResult Index(HttpPostedFileBase file) { if (file.ContentLength > 0...

19 Jul at 08:1

ServiceStack not binding FormData on multi-part request

ServiceStack not binding FormData on multi-part request I'm performing file uploads from Javascript. The file is transferred fine, but the additional form data passed in the request is not bound to th...

25 Jul at 10:45

HTML Input="file" Accept Attribute File Type (CSV)

HTML Input="file" Accept Attribute File Type (CSV) I have a file upload object on my page: with the following excel files on my desktop: > 1. file1.xlsx 2. file1.xls 3. file.csv I want the file upload...

How to make <input type="file"/> accept only these types?

How to make accept only these types? I want my uploader only allows these types: - - - - - - How can I achieve this? What should I put in the `accept` attribute? Thanks for your help. I have one more ...

25 Jun at 09:53

HTML File Upload With Authorization Header

HTML File Upload With Authorization Header Simply put I need to be able to, using a file input field, select a file on my machine, hit an "Upload" button, and have the file uploaded (as a byte array p...

ASP.NET FileUpload in UpdatePanel - still not working

ASP.NET FileUpload in UpdatePanel - still not working Attempting to use a FileUpload or AsyncFileUpload control in an updatepanel on a NET 4.5/C# web application. I've tried using either standard Scri...

15 Oct at 18:26