Title: Error on PDF Upload
Last modified: August 15, 2018

---

# Error on PDF Upload

 *  Resolved [rquang](https://wordpress.org/support/users/rquang/)
 * (@rquang)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-on-pdf-upload/)
 * I am receiving an error when trying to upload PDF’s. After pressing upload the
   loading animation just hangs. Error from the console:
 * Uncaught TypeError: g.data.indexOf is not a function
    at HTMLDocument.<anonymous
   > (functions-admin.min.js?ver=1.6.5:1) at HTMLDocument.dispatch (load-scripts.
   php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,
   jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,
   moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:3) at HTMLDocument.
   r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-
   ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,
   media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:
   3) at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,
   utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-
   util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-
   sortable&ver=4.9.8:3) at Object.a.event.trigger (load-scripts.php?c=0&load[]=
   jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,
   underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,
   wp-plupload,jquery-ui-sortable&ver=4.9.8:9) at y (load-scripts.php?c=0&load[]
   =jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,
   underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,
   wp-plupload,jquery-ui-sortable&ver=4.9.8:4) at XMLHttpRequest.c (load-scripts.
   php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,
   jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,
   moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:4)
 * When I view the media library, I can see that the PDF get’s uploaded.
 * I have tested this in both Firefox and Chrome.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [maximum.software](https://wordpress.org/support/users/maximumsoftware/)
 * (@maximumsoftware)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-on-pdf-upload/#post-10591455)
 * Looks like that JS file is part of ‘Perfect WooCommerce Brands’ plugin. Do you
   have that installed? Can you try disabling it and see if that solves your issue?
 * Once I get a chance, I will replace that the file upload with media library thickbox
   which should improve compatibility a bit.
 *  Thread Starter [rquang](https://wordpress.org/support/users/rquang/)
 * (@rquang)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-on-pdf-upload/#post-10593193)
 * That was the issue!
 * Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error on PDF Upload’ is closed to new replies.

 * ![](https://ps.w.org/pdf-forms-for-contact-form-7/assets/icon.svg?rev=2670251)
 * [PDF Forms Filler for CF7](https://wordpress.org/plugins/pdf-forms-for-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pdf-forms-for-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pdf-forms-for-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/pdf-forms-for-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdf-forms-for-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdf-forms-for-contact-form-7/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rquang](https://wordpress.org/support/users/rquang/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/error-on-pdf-upload/#post-10593193)
 * Status: resolved