Tagged Questions
82
votes
2answers
46k views
Preview an image before it is uploaded
I want to be able to preview a file (image) before it is uploaded. The preview action should be executed all in the browser without using Ajax to upload the image.
How can I do this?
58
votes
7answers
120k views
jQuery Ajax File Upload
Can I use this following jQuery code to perform file upload using post method of Ajax request ?
$.ajax({
type: "POST",
timeout: 50000,
url: url,
data: dataString,
success: ...
49
votes
4answers
47k views
How to have jQuery restrict file types on upload?
I would like to have jQuery limit a file upload field to only jpg/jpeg, png, and gif. I am doing backend checking with PHP already. I am running my submit button through a JavaScript function already ...
31
votes
7answers
44k views
how to resolve the C:\fakepath?
<input type="file" id="file-id" name="file_name" onchange="theimage();">
This is my upload button.
<input type="text" name="file_path" id="file-path">
This is the text field where I ...
28
votes
6answers
4k views
How would one handle a file upload with Meteor?
What would be the canonical way to handle a file upload with Meteor?
23
votes
4answers
18k views
getting access is denied error on IE8
I have a html form (upload.htm) with a html file upload control inside of it.
<form id="frmupload" name="upload" enctype="multipart/form-data" action="uploadhandler.ashx" method="post">
...
21
votes
7answers
27k views
Facebook Graph API - upload photo using JavaScript
Is it possible to upload a file using the Facebook Graph API using javascript, I feel like I'm close. I'm using the following JavaScript
var params = {};
params['message'] = 'PicRolled';
...
20
votes
7answers
35k views
javascript file upload size validation
Is there any way to check file size before uploading it using javascript.
20
votes
4answers
6k views
Javascript: Uploading a file… without a file
I am trying to fake a file upload without actually using a file input from the user. The file's content will be dynamically generated from a string.
Is this possible? Have anyone ever done this ...
20
votes
1answer
21k views
Using HTML5 file uploads with AJAX and jQuery
Admittedly, there are similar questions lying around on SO. But it seems none quite meet my requirements. Here is what I'm looking to do:
Upload an entire form of data, one piece of which is a ...
20
votes
4answers
4k views
Is it possible to perform an asynchronous cross-domain file-upload?
It is possible! Read below.
First of all, let me use this diagram to explain how asynchronous file uploads can be achieved:
Sorry. I've shut down one of my domains, and the image is gone now. It ...
19
votes
4answers
9k views
Client Checking file size using HTML5?
I'm trying to ride the HTML5 wave but I'm facing a small issue. Before HTML5 we were checking the file size with flash but now the trend is to avoid using flash in web apps. Is there any way to check ...
17
votes
10answers
11k views
How can I get Gmail-like file uploads for my web app?
I want to add gmail-like file upload functionality for one of my projects. Can anybody help me with this?
My application is built in vb.net.
I would appreciate any kind of help or guidance.
Thanks
...
17
votes
6answers
2k views
Adding unobtrusive progress bar to old-school file uploads
You all know the new generation of fancy, mostly Flash-based file uploaders like SWFUpload that can show a progress bar while uploading - a great improvement especially for shaky and low-bandwidth ...
15
votes
4answers
757 views
How to resume a broken upload in HTML5
I am trying to add resume functionality to html5 file uploader.
I need to be able to resume after browser was closed (and reopened) and I lost the file object, I do not want the user to drag/open the ...