Title: JS errors with file uplaod
Last modified: January 9, 2017

---

# JS errors with file uplaod

 *  [Ced](https://wordpress.org/support/users/cedriccharles/)
 * (@cedriccharles)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/js-errors-with-file-uplaod/)
 * Hello Fabian !
 * First of all, I wish you a happy new year !
 * Secondly, I have an issue with your plugin and the file upload field. I have 
   created a simple form with 3 fields : firstname, lastname, CV (file upload). 
   When I display it on a page of my site, I have these JS errors (which I don’t
   have without the form) : [https://snag.gy/yQZqga.jpg](https://snag.gy/yQZqga.jpg)
 * Also, I don’t want that the users see all the uploads attached to the current
   post, only the ones he has uploaded himself or only the one he is currently uploading.
 * Thank you in advance and have a good day !
    Cédric

Viewing 1 replies (of 1 total)

 *  Plugin Author [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-errors-with-file-uplaod/#post-8643730)
 * Hi Cédric, happy new year to you as well!
 * I’m having some trouble recreating the JS errors you are getting. Do you have
   any other plugins installed except for ACF and AF? If so, could you try deactivating
   them temporarily?
 * Limiting the media uploads is a bit trickier and currently falls a bit outside
   the scope of this plugin. It seems as if ACF uses the default WP media uploader
   and doesn’t offer any special hooks to modify what it displays. Perhaps you could
   try something like this plugin: [https://wordpress.org/plugins/view-own-posts-media-only/](https://wordpress.org/plugins/view-own-posts-media-only/).
   I haven’t tried it personally but it seems to do almost what you ask for. I also
   found a Stack Overflow thread regarding the problem: [http://wordpress.stackexchange.com/questions/1482/restricting-users-to-view-only-media-library-items-they-have-uploaded](http://wordpress.stackexchange.com/questions/1482/restricting-users-to-view-only-media-library-items-they-have-uploaded)
 * Please report back if you find a cool solution. Might be nice to include in the
   documentation. 🙂
 * Thanks a lot for reporting the problems you run into!

Viewing 1 replies (of 1 total)

The topic ‘JS errors with file uplaod’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/js-errors-with-file-uplaod/#post-8643730)
 * Status: not resolved