Upload files to the server as Gmail?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
50 views
How to implement and maybe there are ready solutions to implement the process of uploading files to the server as Gmail.


Recall features:

*) multiAttach, you can attach multiple files, and not to poke one

*) progressBar, the selected files are loaded sequentially + display of the upload process of each file

*) The file download can be interrupted or remove a single file from the already uploaded, or delete them from the queue file which has not yet started to boot.

*) maybe something else has not seen useful

51e589616d9d66896021a17402188880.jpg
by | 50 views

7 Answers

0 like 0 dislike
here is a list of the most popular stackoverflow.com/questions/4072889/uploadify-alternative-need-to-upload-large-1gb-files
\r
I myself use the third(derived from the first), even works on IE6. The progress bar and the cancel can take at first. These two without flash, HTML4
by
0 like 0 dislike
by
0 like 0 dislike
Used version of PHP+APC www.ibm.com/developerworks/library/os-php-v525/index.html All beautiful, without any extra plugins and without flash.
by
0 like 0 dislike
If you do not touch all sorts of flushes and server components, that can be done on the basis of the functionality offered by HTML5. The only problem is that it is introduced slowly and supported browsers sucks:
\r
1. Chrome: from the 5th (?) version added FormData (XHR2). You can now send files (despite the fact that to read the binary contents of a file is impossible, at least in the stable releases) XHR'ω (where, recall, need multipart). In earlier versions, you had to send the raw binary contents of the file, without any headers. Accordingly, the web servers didn't understand that they got the file, and generally does not processed the sent information (it had to be read from the input stream). Have the support of the XMLHttpRequestUpload, which allows you to monitor the download progress.
\r
2. Firefox: starting with 3.5 (?) you can read the contents of files, there is a special method to send binary data. So the absence of bad FormData does not affect — multipart request, you can generate yourself. XMLHttpRequestUpload are also supported.
\r
3. Safari: a point can not say, but File, FormData, there XMLHttpRequestUpload implemented (5.0 — 7533.16).
\r
4. Opera, IE: apparently not even heard of such. They will have to do the old-fashioned way — flash / ServeRAID / etc.
\r
From the category to read:
\rjavascript.ru/blog/Brmaley.ee/FileAPI — material is somewhat outdated*
\rwww.thecssninja.com/javascript/gmail-upload — material is somewhat outdated*
\rcode.google.com/p/html5uploader/ — library of D&D, but, in my opinion, it is also somewhat outdated* :)
\r
* — this refers to support such a thing as FormData.
by
0 like 0 dislike
There is an interesting plugin valums.com/ajax-upload/
by
0 like 0 dislike
ProgressBar implemented in JQuery lot of ready-made components
there are solutions for the flash
\r
if you are using nginx, and this is a big part of the Internet, you need ISP module:
ngx_upload_module, mgx_upload_progress_module
\r
if you use Apache, that is, cgi scripts progress-download.
by
0 like 0 dislike
In my opinion the most interesting and useful feature of gmail — drag'n'drop support :)
by

Related questions

0 like 0 dislike
7 answers
asked Mar 21, 2019 by hugovox
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
27,872 users