[Local] Cannot add new media

Sorry I have problems uploading media

When using multi-file uploader I got this message.
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
But there is no media uploaded successfully.

When using browser uploader I got this kind of error:
# 405 Not Allowed
nginx/1.16.0

I am using Mac Catalina and here is the information of my Local version:
Webserver: nginx
PHP version: 7.3.2
Database: MySQL 8.0.15
Wordpress version: 5.3

Hi @momentchan,

Could you let us know what the size and filetype of the media that you’re trying to upload?

It would also help to know how many items you’re trying to upload at one time. I believe the limit for Local by default is 20 items.

Thanks!

@tyler
I just tried to upload one simple jpeg image with small size like 320 × 320 at one time.
It seems like no matter what size or filetype it is I cannot upload any media successfully.
Please let me know if you need any other information about this issue.

Looking forward to your reply.
Thanks a lot!

i am also facing the same problem on my website here

Yes, when I upload to media in WP, I’m getting this message:

“Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again.”

and this console error:

“POST …/wp-admin/async-upload.php 405”

This happens when I try to upload any media on any of my local sites. The thing is that it has worked before though, so not sure what has happened.

Any word on how to fix this? I’ve done various things with permissions to no avail.

Having the same problem.

Does anyone at Flywheel care about solving this?!?

Still seeing this.
Updated Local to 5.5.3
Update PHP to 7.4.1
Tried Nginx and Apache
Tried php 7.3.5 and 5.6.39
Memory limit in php.ini is already 356.
The image size is 800x800 px and about 250kb
permission on uploads folder is 755.

Found a solution that worked for me:

For me it was file permissions, not for the error.log file, but the client_body_temp folder.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.