Archived from the Transloadit support forum. Originally posted on February 25, 2014; details may be outdated, see our docs for current behavior. Original thread
Hi
I’ve found the html5 min/max file count via the file input field to not work so great.
Is it possible to ignore all but the fix X files (a max count setting)?
Also - the max upload, is that all the files combined and is it measured in K?
I’ve found the html5 min/max file count via the file input field to not work so great.
Not sure I understand. Do you mean the file input field attributes for this?
Is it possible to ignore all but the fix X files (a max count setting)?
Did you mean “first” instead of “fix”?
I think it’s possible by inspecting the value attribute of your file input field and see how many files were selected. If that is bigger than a certain X, you could display a warning message and block form submission. If this does not work, then you could most likely you the html5 file reader API.
Also - the max upload, is that all the files combined and is it measured in K?
You probably mean the “max_size” parameter. Yes, that is the size of all uploads combined.
okay got it. Yeah a simple notification at the top should suffice I think. If people ignore it, then they should not be annoyed when they have to reselect.