I'm using JS for multiple upload
Now i want to know
Is there any limit for choosing files when we upload files using JS.
i got sucked browser and system as well when i try.
please provide details.
try to use dropzone plugin its very efficeint and nice plugin for uploading files and it also gives option for parallelUploads
Related
I have ran into a problem: I need to allow a website visitor to drag and drop files AND folders, and handle the upload. Since it is supposed to be a image upload, I need to differentiate between those two before doing any actual uploading.
Question: How to know if dropped item is a file, or a folder? Using webkitGetAsEntity is almost ideal, but obviously, it does not work on neither IE or Firefox (need support for both of them).
Libraries used: I can use AngularJs, jQuery and simple javascript. Using other libraries is not possible.
Can anyone give me any suggestions here?
I'm using the simplehttpwithupload.py script, which I have linked to below, to host a simple http server where people can upload files to me. Is there a way to modify the source code so that multiple files can be selected for upload at once? Such that when the select file dialog box comes up, users can ctrl/shift click and select several files which will then be uploaded.
https://www.dropbox.com/s/wshzyseignnz78x/simplehttpwithupload.py
Thanks
Is there a way to modify the source code so that multiple files can be selected for upload at once? Such that when the select file dialog box comes up, users can ctrl/shift click and select several files
I'm pretty sure there's not a simple way. Things may have improved, but when I looked into this a year or two ago, the only solution for exactly what you're looking for is Flash based. The problem is that the file selection dialog is on the client side and multiple file selection is not directly supported in the browser.
There is a JavaScript based solution for downloading multiple files, but it doesn't exactly match what you asked for. See Upload multiple files with a single file element for the explanation, and Multiple file uploader: Mootools version for a later, prettier version.
The main idea is:
you can only store file upload information in a file upload element (), you’ll always need to have one element per file to be uploaded.
it’s actually a relatively simple matter to conceal a file element once a file has been chosen, and add a new (empty) one in its place.
To apply the JavaScript solution to simplehttpwithupload.py, you'll have to rewrite the list_directory function.
i want to check in Javascript whether the uploading process of my rails controller is complete. how can i do this?
my intention is to get the amount of files that has been transfered (i'm doing some byte-checking in the controller and i decide wheter to upload or to keep the file on the client side).
is that even possible? i would do the upload in js but unless you cannot check the files in js i have to upload them via rails.
please help,
kind regards
There are several ways to do this (here's one w/Nginx and jQuery) some of which include drag-and-drop support, etc.
What you want to google is something like rails jquery file upload with progress bar and choose an implementation among the many that are out there.
I need some similar to Telerik control because this control have problem in opera.
Thanks in advance.
Have you looked at Uploadify?
Uploadify is a jQuery plugin that integrates a fully-customizable multiple file upload utility on your website
Uploadify is a great multiple file uploader. It was built off of the popular SWFUpload and they added new features to it.
Some of the features that I have found most helpful are:
The user can upload all the files at once using ctrl + clicking on all of
the files
As the files are being downloaded a queue is displayed which
shows the files being downloaded including a completeion bar.
As files are completed they are removed from the queue
It also allows you to specify which file types the user is
able to download (they can only see the ones you choose)
The main downfall is that it is a flash uploader if that is a problem for you.
I personally use Plupload http://www.plupload.com/ as it has some great options.
I have this form where i ultimately want to be able to upload several files, and those files will appear in a textarea tag right underneath. How do i upload files using javascript?
The easy path is go with a plugin. Here is an upload plugin for jQuery library.