• Resolved Lo?c Parent

    (@lowick)


    Hello again Fabian,

    I would like to allow several files to be sent from the form.
    So I tried with the gallery field but I have an error in front:

    
    Uncaught TypeError: Cannot read property 'query' of undefined
        at Object.new_media_frame (acf-input.min.js:2)
        at Object.popup (acf-input.min.js:2)
        at Object._add (acf-pro-input.min.js:1)
        at HTMLAnchorElement.<anonymous> (acf-input.min.js:1)
        at HTMLDocument.dispatch (jquery.js:3)
        at HTMLDocument.r.handle (jquery.js:3)
    

    But I was wondering if there was way to change the setting of the ACF file field to be able to pass several files to it?

    thank you in advance for your answer ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    Unfortunately there is no way to let the ACF file field accept multiple fields that I know of. An option is to use a repeater with file fields which has worked well for me in the past.

    That error you are getting for the gallery field is odd. Are you logged in to WordPress while trying it out?

    Thread Starter Lo?c Parent

    (@lowick)

    No, this error appear when I’m not logged in.

    If I try when I’m logged, I have the same thing than in the admin (popup with the possibility to drag and drop the files or choose an existing file).

    Plugin Author fabianlindfors

    (@fabianlindfors)

    The ACF gallery field can unfortunately only be used when logged in as it relies on the WordPress media picker. The media picker is restricted to logged in users.

    I would recommend using a repeater with regular file fields, I hope that solutions works for you. ??

    Thread Starter Lo?c Parent

    (@lowick)

    Ok, thank you for your answer ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple files upload’ is closed to new replies.