Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • naitsirhc 15 posts 117 karma points
    Feb 12, 2019 @ 13:24
    naitsirhc
    0

    file upload button

    Hi, I have a file upload field in my form, and I was wondering if I could "cache" or something the file before it gets saved to the server. so that the user could upload multiple files at once.

    does that make sense?? is it even posible?

  • Craig Mayers 164 posts 508 karma points
    Feb 12, 2019 @ 13:47
    Craig Mayers
    100

    Hi Christian,

    You could handle this using the 'multiple' attribute of the File Upload input control.

    See link below: https://www.w3schools.com/tags/attinputmultiple.asp

    You would then handle the multiple files in code, by looping through them and processing however you want etc.

    You could also, use a library like Dropzone.js which is pretty neat!

    Thanks

    Craig

Please Sign in or register to post replies

Write your reply to:

Draft