Title: php.ini &amp; uploading images
Last modified: August 30, 2016

---

# php.ini & uploading images

 *  [decombs21](https://wordpress.org/support/users/decombs21/)
 * (@decombs21)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpini-uploading-images/)
 * I’ve been trying unsuccessfully to upload jpegs to my site and I keep getting
   these “cryptic” messages –
 * “” has failed to upload due to an error
    File is empty. Please upload something
   more substantial. This error could also be caused by uploads being disabled in
   your php.ini or by post_max_size being defined as smaller than upload_max_filesize
   in php.ini.
 * I’ve seen just everything but this. How can I get MY images to upload? They’re
   tiny at 24kb and 3 kb.
 * TIA
 * Dave

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

 *  [trystan](https://wordpress.org/support/users/trystan-2/)
 * (@trystan-2)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpini-uploading-images/#post-6636004)
 * Dave,
 * I’m not sure if this is any help to you, but it may be that you don’t have gd
   installed. This is the bit in PHP that handles images.
 * [http://php.net/manual/en/book.image.php](http://php.net/manual/en/book.image.php)
 * When you install it, make sure you restart httpd to enable the changes.
 * Let us know how you get on 🙂
 *  Thread Starter [decombs21](https://wordpress.org/support/users/decombs21/)
 * (@decombs21)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpini-uploading-images/#post-6636111)
 * Thank you Trystan. If it were a matter of cigars, I’m sorry to say you can’t 
   have one.
 * What was required was to contact my hosting company and ask them to “tinker” 
   with the php.ini file. Eve did so and I was able to upload photos just fine.
 * I wanted to post this not to embarrass you but to have this exchange on this 
   site for the next person with the problem.

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

The topic ‘php.ini & uploading images’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [decombs21](https://wordpress.org/support/users/decombs21/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/phpini-uploading-images/#post-6636111)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
