Blueimp File Upload: single file upload

前端 未结 3 1683
再見小時候
再見小時候 2021-01-04 11:28

I\'m using Blueimp File Upload, how can I limit the upload to the last single element selected or (drag and) dropped? I already deleted the multiple attribute f

相关标签:
3条回答
  • 2021-01-04 11:57

    Also change the multiple attribute if it is set from

    <input type="file" multiple="" name="file">
    

    to:

    <input type="file" name="file">
    
    0 讨论(0)
  • 2021-01-04 12:00

    change input tag from:
    <input type="file" name="files[]">
    to:
    <input type="file" name="file">

    0 讨论(0)
  • 2021-01-04 12:00

    Remove files array and remove multiple attribute:

    <input id="fileupload" type="file" name="files[]" multiple>
    

    to:

    <input id="fileupload" type="file" name="file">
    
    0 讨论(0)
提交回复
热议问题