[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.