Download multiple HTML5 files. more options?

I use the function of adding multiple HTML5 files.

I am wondering if:

  • Can you limit the number of files that a user can select?
  • Can you get the order in which they were selected?

I am making a page that lists screenshots from users. I would like to tell them that the first image they selected in the dialog box will be the main image displayed on the index page.

However, the dialog seems to return the selected files in alphabetical order (actually, not sure if HTML5 does this, or PHP).

+4
source share
1 answer

I do not believe that you can set a limit on the number of files with a built-in attribute, just a few or not, for example: <input type="file" multiple="true">

You can use javascript on the interface to limit the number and check on the server.

I would suggest that the files are listed in alphabetical order, the exact order probably depends on the system.

+4
source

All Articles