All Questions

2478
votes
25answers
1142260 views

How can I upload files asynchronously?

I would like to upload a file asynchronously with jQuery. This is my HTML: <span>File</span> <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="b...
270
votes
20answers
311135 views

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 simula...
91
votes
5answers
200340 views

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: <input id="sortpicture" type="file" name="sortpic" /> <button id="uploa...
546
votes
10answers
241532 views

Need a minimal Django file upload example

As a newbie to Django, I am having difficulty making an upload app in Django 1.3. I could not find any up-to-date example/snippets. May someone post a minimal but complete (Model, View, Template) exam...
44
votes
1answers
107202 views

how to upload file using curl with php

I want to know how to upload file using cURL or anything else in PHP. I have searched in google many times but no results. I have this code to receive the file and upload it code : echo"".$_FILES[...
92
votes
3answers
153693 views

Show an image preview before upload

In my HTML form I have input filed with type file for example : <input type="file" multiple> Then I'm selecting multiple files by clicking that input button. Now I want to show preview of s...
75
votes
12answers
157634 views

Upload Progress Bar in PHP

Does anyone know how to get a progress bar for an upload in php? I am trying writing code for a photo album uploader. I would like a progress bar to display while the photos are uploading. I am fair...
153
votes
8answers
125317 views

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 questi...
107
votes
12answers
326221 views

move_uploaded_file gives "failed to open stream: Permission denied " error after all configurations I did

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: Di...
120
votes
11answers
247026 views

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 <input type="file">. However, I am having trouble doing uploading more than one at a time. For example, I'd like to be able to selec...

Previous Next