Title: Error When Uploading PDF
Last modified: August 21, 2016

---

# Error When Uploading PDF

 *  Resolved [TKPM](https://wordpress.org/support/users/tkpm/)
 * (@tkpm)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/)
 * Hi, I’m receiving the following error code when trying to upload pdf files:
 * Warning: in_array() expects parameter 2 to be array, null given in /home/content/
   24/10812624/html/wp-content/plugins/frontend-uploader/frontend-uploader.php on
   line 198
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/24/10812624/html/wp-content/plugins/frontend-uploader/frontend-
   uploader.php:198) in /home/content/24/10812624/html/wp-includes/pluggable.php
   on line 876
 * [http://wordpress.org/extend/plugins/frontend-uploader/](http://wordpress.org/extend/plugins/frontend-uploader/)

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/error-when-uploading-pdf/?output_format=md)
[1](https://wordpress.org/support/topic/error-when-uploading-pdf/?output_format=md)
2

 *  Plugin Author [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * (@rinatkhaziev)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/page/2/#post-3646154)
 * You should figure out what mime type is your PDF file (that’s what fu_is_debug
   filter for) – it’ll display more detailed information on failed upload (including
   mime-type),
    and then add this mime with add_filter( ‘fu_allowed_mime_types’,‘
   my_fu_allowed_mime_types’ );
 * If you post here what exact mime type gives you trouble, I can write a snippet
   for you that’ll take care of it. Or you can do it yourself if you’re feeling 
   brave
 *  Thread Starter [TKPM](https://wordpress.org/support/users/tkpm/)
 * (@tkpm)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/page/2/#post-3646157)
 * Assuming it’s application/pdf (as I’ve tried a few different pdf files); looks
   like filext.com is currently down.
 * Thanks for all your help!
 *  Thread Starter [TKPM](https://wordpress.org/support/users/tkpm/)
 * (@tkpm)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/page/2/#post-3646176)
 * Unfortunately, I’ve had no luck with the snippet, so any help would be greatly
   appreciated.
 * On the bright side, I’m no longer receiving that syntax error when logging into
   the dashboard, guessing it worked itself out over time…
 *  Plugin Author [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * (@rinatkhaziev)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/page/2/#post-3646189)
 * Try the new version and let me know if it works for you.
    [http://downloads.wordpress.org/plugin/frontend-uploader.0.5.2.zip](http://downloads.wordpress.org/plugin/frontend-uploader.0.5.2.zip)
 *  Thread Starter [TKPM](https://wordpress.org/support/users/tkpm/)
 * (@tkpm)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/page/2/#post-3646231)
 * Just tried pdf and psd files and both worked! Thanks a ton!!
 *  Plugin Author [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * (@rinatkhaziev)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/page/2/#post-3646238)
 * Marking as resolved

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/error-when-uploading-pdf/?output_format=md)
[1](https://wordpress.org/support/topic/error-when-uploading-pdf/?output_format=md)
2

The topic ‘Error When Uploading PDF’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontend-uploader_81a69d.svg)
 * [Frontend Uploader](https://wordpress.org/plugins/frontend-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontend-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontend-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/frontend-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontend-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontend-uploader/reviews/)

## Tags

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

 * 21 replies
 * 2 participants
 * Last reply from: [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-uploading-pdf/page/2/#post-3646238)
 * Status: resolved