Fix for upload failure on GAE
https://wordpress.org/support/topic/upload-fails-with-http-error