Linked Questions
82 questions linked to/from How does HTTP file upload work?
134
votes
2
answers
273k
views
What should a Multipart HTTP request with multiple file inputs look like? [duplicate]
I'm working on an iPhone app that makes a multipart HTTP request with multiple image files.
It looks like what's happening, on the server side, is that one of the images is getting parsed properly, ...
0
votes
0
answers
570
views
Receive HTTP POST request with a file [duplicate]
I'm trying to learn a bit of Java's HTTP server, I have a simple setup, on a PHP server I have an input field where I upload a File with POST. I was wondering if it is possible to get that file in the ...
0
votes
0
answers
154
views
How is an image sent when submitting a form? [duplicate]
I'm building a simple website that allows image uploading.
I'm trying to understand how can I allow the user to upload an image to my server.
I'm asking this question in two aspects:
How is that ...
1956
votes
9
answers
2.0m
views
What does enctype='multipart/form-data' mean?
What does enctype='multipart/form-data' mean in an HTML form and when should we use it?
665
votes
22
answers
690k
views
HTTP test server accepting GET/POST requests [closed]
I need a live test server that accepts my requests for basic information via HTTP GET and also allows me to POST (even if it's really not doing anything). This is entirely for test purposes.
A good ...
279
votes
9
answers
663k
views
How to upload file with python requests?
I'm performing a simple task of uploading a file using Python requests library. I searched Stack Overflow and no one seemed to have the same problem, namely, that the file is not received by the ...
109
votes
6
answers
72k
views
How is mime type of an uploaded file determined by browser?
I have a web app where the user needs to upload a .zip file. On the server-side, I am checking the mime type of the uploaded file, to make sure it is application/x-zip-compressed or application/zip.
...
69
votes
3
answers
9k
views
Why does PHP store uploaded files in a temporary location and what is the benefit?
Okay I'm totally new in this field and going through some tutorials and I found that while uploading files in PHP it stores them in a temporary location.
$file_temp=$_FILES['file']['tmp_name'];
$...
34
votes
6
answers
29k
views
MAX_FILE_SIZE in PHP - what's the point?
I was trying to make a file upload form and checked the PHP documentation to refresh my memory on the subject. Here is a link to the relevant article. All of a sudden I noticed this message:
The ...
6
votes
4
answers
17k
views
How an image get converted by base64 algorithm?
After I read in https://en.wikipedia.org/wiki/Base64 about how the word Man gets converted into TWFu by using the base64 algorithm, I was wondering how an image get converted by the same algorithm, ...
8
votes
5
answers
5k
views
Different ways to upload a file?
I have read several ways to upload files to server.
HTTP file uploading as multipart/formdata
(How does HTTP file upload work?)
JSON file uploading
(How do I upload a file with metadata using a REST ...
6
votes
4
answers
46k
views
Uploading files via jQuery, object FormData is provided and no file name, GET request
I am using a jQuery script to upload files to a new page. It somehow works too, but the issue is that it sends the form data as object FormData.
Here is the code:
$('#submit').click(function () {
...
16
votes
4
answers
6k
views
Pure Node.js file upload (multipart POST) without using a framework
The third-party libraries "node-formidable" and "express" come with the ability to handle multipart POST requests (e.g. with a file upload form), but I don't want to use any third-party code. How do I ...
12
votes
1
answer
28k
views
HTTP multipart/form-data. What happends when binary data has no string representation?
I want to write an HTTP implementation.
I've been looking around for a few days about sending files over HTTP with Content-Type: multipart/form-data, and I'm really interested about how browsers (or ...
14
votes
2
answers
17k
views
Uploading images with fetch to Express using Multer
I'm attempting to upload images to an Express server. I'm not exactly sure about how to do this, but heres what I've got from what I've been able to pick up from MDN, express, react-dropzone, and ...