# How to Allow All File Types

For security reasons, WordPress allows uploading of only commonly used file types such as:

* **Images:** .jpg, .jpeg, .png, .gif, .ico, .webp
* **Documents:** .pdf, .doc, .docx, .ppt, .pptx, .pps, .ppsx, .odt, .xls, .xlsx, .psd, .xml
* **Audio:** .mp3, .m4a, .ogg, .wav
* **Video:** .mp4, .m4v, .mov, .wmv, .avi, .mpg, .ogv, .3gp, .3g2

Some file types are blocked due to security risks:

* **Images:** .svg, .bmp
* **Documents:** .psd, .ai, .pages
* **Code files:** .css, .js, .json
* **Video:** .flv, .f4l, .qt

If you try to upload unsupported file types, you'll see the error message, "Sorry, you are not allowed to upload this file type."

<figure><img src="https://3634278961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXd0iEK33mLCE7WbhZ063%2Fuploads%2FtZXjNJ8KG1kYTvCiFOAf%2Fimage.png?alt=media&#x26;token=f0a1e2d5-cbee-497b-b194-903385e93e59" alt=""><figcaption></figcaption></figure>

* Access the **`wp-config.php`** file by going through; **WP Dashboard>> File Manager>> example.com (main domain folder),** also known a&#x73;**`/public_html`** directory.
* [Edit ](../how-to-get-info-of-mysql-settings-in-wp-config.php#editing-the-wp-config.php-file)the **`wp-config.php`** file, then find and add the following line of code at the end of the file before the _/\* That's all, stop editing_;\
  &#xNAN;**`phpCopy codedefine('ALLOW_UNFILTERED_UPLOADS', true);`** .&#x20;

<figure><img src="https://3634278961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXd0iEK33mLCE7WbhZ063%2Fuploads%2F5XQ5ElNQJ1llD5JCUH7V%2Fimage.png?alt=media&#x26;token=9dd5c922-1bb0-4bdb-837a-0cceea03a4ce" alt=""><figcaption></figcaption></figure>

Save changes.
