Title: js and css uploads
Last modified: November 20, 2019

---

# js and css uploads

 *  Resolved [acurrie314](https://wordpress.org/support/users/acurrie314/)
 * (@acurrie314)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-uploads/)
 * Whenever I try to upload .js and .css files as a local resource, I’m getting 
   this error: An error was thrown while trying to upload the resource: “Sorry, 
   this file type is not permitted for security reasons.”

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

 *  Thread Starter [acurrie314](https://wordpress.org/support/users/acurrie314/)
 * (@acurrie314)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-uploads/#post-12152990)
 * was able to get around it adding : define(‘ALLOW_UNFILTERED_UPLOADS’, true);
 * to wp config file
 *  [aasoubra](https://wordpress.org/support/users/aasoubra/)
 * (@aasoubra)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-uploads/#post-12199446)
 * how to edit wp config file in order to add : define(‘ALLOW_UNFILTERED_UPLOADS’,
   true);

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

The topic ‘js and css uploads’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [aasoubra](https://wordpress.org/support/users/aasoubra/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/js-and-css-uploads/#post-12199446)
 * Status: resolved