Title: Multiple files upload
Last modified: July 14, 2017

---

# Multiple files upload

 *  Resolved [Loïc Parent](https://wordpress.org/support/users/lowick/)
 * (@lowick)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/multiple-files-upload-3/)
 * 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](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/multiple-files-upload-3/#post-9334572)
 * 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](https://wordpress.org/support/users/lowick/)
 * (@lowick)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/multiple-files-upload-3/#post-9334610)
 * 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](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/multiple-files-upload-3/#post-9385904)
 * 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](https://wordpress.org/support/users/lowick/)
 * (@lowick)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/multiple-files-upload-3/#post-9414827)
 * 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.

 * ![](https://ps.w.org/advanced-forms/assets/icon-256x256.png?rev=1894254)
 * [Advanced Forms for ACF](https://wordpress.org/plugins/advanced-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-forms/reviews/)

## Tags

 * [upload files](https://wordpress.org/support/topic-tag/upload-files/)

 * 4 replies
 * 2 participants
 * Last reply from: [Loïc Parent](https://wordpress.org/support/users/lowick/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/multiple-files-upload-3/#post-9414827)
 * Status: resolved