Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>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</p> </blockquote> <p>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.</p> <p>There is a JavaScript based solution for downloading multiple files, but it doesn't exactly match what you asked for. See <a href="http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/" rel="nofollow">Upload multiple files with a single file element</a> for the explanation, and <a href="http://the-stickman.com/web-development/javascript/multiple-file-uploader-mootools-version/" rel="nofollow">Multiple file uploader: Mootools version</a> for a later, prettier version.</p> <p>The main idea is:</p> <blockquote> <p>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.</p> <p>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.</p> </blockquote> <p>To apply the JavaScript solution to <code>simplehttpwithupload.py</code>, you'll have to rewrite the <code>list_directory</code> function.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload