Title: Getting a filesize(): stat failed Error When Uploading
Last modified: August 30, 2016

---

# Getting a filesize(): stat failed Error When Uploading

 *  Resolved [charitablehumans](https://wordpress.org/support/users/charitablehumans/)
 * (@charitablehumans)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/getting-a-filesize-stat-failed-error-when-uploading/)
 * This is the error message that I get every time I add images to the media library:
 * Warning: filesize(): stat failed for … {filepath/filename} in /home/charita5/
   public_html/wp-content/plugins/amazon-s3-and-cloudfront/classes/amazon-s3-and-
   cloudfront.php on line 649
 * As far as I can tell, the files appear to be uploading to AWS CloudFront, but
   not being a developer (or anything even close to one) I don’t know what issues
   might exist that could cause problems later on.
 * I glanced at several of the threads, but it seems that no one else has reported
   this. I don’t think this error is related to the WP_Error issues a number of 
   people are having. If anyone has any ideas, please let me know.
 * Thanks
 * [https://wordpress.org/plugins/amazon-s3-and-cloudfront/](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [charitablehumans](https://wordpress.org/support/users/charitablehumans/)
 * (@charitablehumans)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/getting-a-filesize-stat-failed-error-when-uploading/#post-6515621)
 * It seems as though the issue was with another plugin, Optimize Images Resizing.
   When I deactivated Optimize Images Resizing, the errors mentioned in my initial
   post above no longer persists.
 * I had both of these plugins working together a few weeks ago, so the error might
   just be due to an update. Regardless, this problem is now resolved.

Viewing 1 replies (of 1 total)

The topic ‘Getting a filesize(): stat failed Error When Uploading’ is closed to 
new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [charitablehumans](https://wordpress.org/support/users/charitablehumans/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/getting-a-filesize-stat-failed-error-when-uploading/#post-6515621)
 * Status: resolved