Title: Filetype not allowed??
Last modified: July 8, 2018

---

# Filetype not allowed??

 *  Resolved [nagyszenas](https://wordpress.org/support/users/nagyszenas/)
 * (@nagyszenas)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/filetype-not-allowed/)
 * Hi,
    I use the last version of the photo gallery, but since a month i cant upload
   new photos. The errormessage is: File loading failed: filetype not allowed. What
   is the problem? I want to upload only jpeg files.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Photo Gallery Support](https://wordpress.org/support/users/photogallerysupport/)
 * (@photogallerysupport)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/filetype-not-allowed/#post-10475101)
 * Hi,
 * We are sorry for the inconvenience.
 * This problem can be caused by the following two configurations on your website:
 * **Permissions**. The folder where the photos are uploaded to should have their
   permissions set to **755 **or **775**. Please use FTP connection to check this.
 * **PHP GD2 Library**. Please check if PHP GD2 library is enabled on your website.
   To check this, please follow the steps below.
 * 1. Create a plain text file and add the following code to it.
 * <?php
    if (extension_loaded(‘gd’) && function_exists(‘gd_info’)) { echo “PHP 
   GD library is installed on your web server”; } else { echo “PHP GD library is
   NOT installed on your web server”; } ?>
 * Save the file, with testgd.php as its title.
 * 2. Upload it to the main directory of your website and access it via browser 
   using its URL, e.g.:
 * [http://www.yoursite.com/](http://www.yoursite.com/)**testgd.php**
 * If the PHP GD2 library is **not enabled** on your web server, the output of the
   file will note so. In this case, please contact your hosting provider and ask
   them to activate it for your website.
 * Thank you! Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘Filetype not allowed??’ is closed to new replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

## Tags

 * [file](https://wordpress.org/support/topic-tag/file/)
 * [filetype](https://wordpress.org/support/topic-tag/filetype/)
 * [jpeg](https://wordpress.org/support/topic-tag/jpeg/)

 * 1 reply
 * 2 participants
 * Last reply from: [Photo Gallery Support](https://wordpress.org/support/users/photogallerysupport/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/filetype-not-allowed/#post-10475101)
 * Status: resolved