File uploads: allow multiple?

  • grassmedia
    Asked on April 14, 2014 at 9:01 AM

    Is it possible in some way to detect the number of files to be uploaded and then use that result in another field?  For example, the user uploads 5 images and I want to fill another field with 5 times x?

     

    ...then I guess the other question is, becuase images are uploaded when the submit button is pressed, what if an image fails to upload for some reason, can this be error trapped and then used in some way?

     

    Thanks in advance for any wisdom on this one!

  • jonathan
    Replied on April 14, 2014 at 10:38 AM

    Hi,

    I am sorry, but there is no way for the upload field to be able to do detection like that.

    That capability can be possible only on the backend where the programmer can use the backend code.

    --

    The way I see it, your best option is to use instead several (at least 5x...) single upload field. 

    So, the form user will upload on each of the upload field. If any of this upload field fails you will be able to determine which one then.

    Hope this help. Inform us if you have further input on this.

    Thanks!

     

  • grassmedia
    Replied on April 14, 2014 at 10:51 AM

    Thanks - I thought that was probably the case but worth asking!