Questions tagged [upload]

Upload refers to the sending of data from a local system to a remote system such as a server or another client with the intent that the remote system should store a copy of the data being transferred, or the initiation of such a process

Upload refers to the sending of data from a local system to a remote system such as a server or another client with the intent that the remote system should store a copy of the data being transferred, or the initiation of such a process.

Use if you having trouble to upload data of files with fixed file sizes. But for continuous transmission use tags with stream like or the library specific tags like , , etc.

Important Hint

In web development, there is a common mistake beginners often make during coding forms for uploading files. This mistake is not supplying the enctype attribute in the form tag, or supplying it in a form's element instead of supplying it in the form tag itself. To ensure that the form is going to submit files the form tag should be something like the following:

<form method="post" action="some/server/side" enctype="multipart/form-data">
... The form's elements...
</form> 
14140 questions
1008
votes
15 answers

How do I measure request and response times at once using cURL?

I have a web service that receives data in JSON format, processes the data, and then returns the result to the requester. I want to measure the request, response, and total time using cURL. My example request looks like: curl -X POST -d @file…
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
743
votes
10 answers

How to upload a file in Django?

What is the minimal example code needed for a "hello world" app using Django 1.3, that enables the user to upload a file?
qliq
  • 11,695
  • 15
  • 54
  • 66
428
votes
7 answers

How to write a Python module/package?

I've been making Python scripts for simple tasks at work and never really bothered packaging them for others to use. Now I have been assigned to make a Python wrapper for a REST API. I have absolutely no idea on how to start and I need help. What I…
yowmamasita
  • 4,810
  • 3
  • 17
  • 17
367
votes
10 answers

Invalid Bundle Error - "requires launch storyboard"

I keep getting this error when I try to submit my app to the store using Xcode: ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch storyboard in bundle 'com.companyname.appname.'" Anyone know what this error really means?
matthias_b_nz
  • 3,815
  • 2
  • 15
  • 12
320
votes
22 answers

Upload files with HTTPWebrequest (multipart/form-data)

Is there any class, library or some piece of code which will help me to upload files with HTTPWebrequest? Edit 2: I do not want to upload to a WebDAV folder or something like that. I want to simulate a browser, so just like you upload your avatar…
dr. evil
  • 26,944
  • 33
  • 131
  • 201
293
votes
27 answers

How to upload a project to GitHub

After checking How can I upload my project's Git repository to GitHub?, I still have no idea how to get a project uploaded to my GitHub repository. I created a repository and want to upload my project to it. I've looked on the repository page for an…
jampez77
  • 5,012
  • 7
  • 32
  • 52
197
votes
6 answers

How to instantiate a File object in JavaScript?

There's a File object in JavaScript. I want to instantiate one for testing purposes. I have tried new File(), but I get an "Illegal constructor" error. Is it possible to create a File object ? File Object reference :…
julesbou
  • 5,570
  • 4
  • 31
  • 36
197
votes
10 answers

C# HttpClient 4.5 multipart/form-data upload

Does anyone know how to use the HttpClient in .Net 4.5 with multipart/form-data upload? I couldn't find any examples on the internet.
ident
  • 3,885
  • 3
  • 14
  • 8
197
votes
10 answers

HTML5 Pre-resize images before uploading

Here's a noodle scratcher. Bearing in mind we have HTML5 local storage and xhr v2 and what not. I was wondering if anyone could find a working example or even just give me a yes or no for this question: Is it possible to Pre-size an image using the…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
192
votes
5 answers

jQuery AJAX file upload PHP

I want to implement a simple file upload in my intranet-page, with the smallest setup possible. This is my HTML part: and this is my JS jquery…
user2355509
  • 1,973
  • 2
  • 14
  • 11
189
votes
5 answers

Is there a Public FTP server to test upload and download?

What I want to do is measure broadband speed using c#. To do this, I use NetworkInterface.BytesReceived and BytesSent to get the current amount of bytes sent and received from my network adapter and get the DateTime. Then I download/upload a file…
Jay
  • 2,225
  • 3
  • 15
  • 22
184
votes
56 answers

This application has no explicit mapping for /error

I used maven to do the tutorial https://spring.io/guides/gs/uploading-files/ All the codes I used was copied. The Application can run, but I get the error: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing…
Deng Steve
  • 1,851
  • 2
  • 11
  • 5
176
votes
9 answers

How can I select and upload multiple files with HTML and PHP, using HTTP POST?

I have experience doing this with single file uploads using . However, I am having trouble doing uploading more than one at a time. For example, I'd like to select a series of images and then upload them to the server, all at…
stalepretzel
  • 15,543
  • 22
  • 76
  • 91
175
votes
15 answers

move_uploaded_file gives "failed to open stream: Permission denied" error

I keep getting this error when trying to configure the upload directory with Apache 2.2 and PHP 5.3 on CentOS. In php.ini: upload_tmp_dir = /var/www/html/mysite/tmp_file_upload/ In httpd.conf: Directory /var/www/html/mysite/tmp_file_upload/> …
user63898
  • 29,839
  • 85
  • 272
  • 514
162
votes
1 answer

How to upload, display and save images using node.js and express

I need to upload an image, and display it, as well as save it so that I don't lose it when I refresh the localhost. This needs to be done using an "Upload" button, which prompts for a file-selection. I am using node.js and express for the…
user1602123
  • 1,677
  • 2
  • 11
  • 5
1
2 3
99 100