phpwordpressfile-uploadmedia-library

Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page


I couldn't find an answer to this in other relevant threads.

I'm trying to upload a PDF (1.4 MB) to WordPress using the media uploader and I get this response:

Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.

This is on shared linux hosting at Godaddy.

What I've tried:

The error log shows nothing.

In the server logs I have found a 404 for async-upload.php, which I suspect is the root of the problem, but I don't know what to do with it. (async-upload.php file is definately there).

Does anyone have any advice on this?

Thanks


Solution

  • It was a corrupted PDF. The first thing I should have checked.