• raunharmantech

    (@raunharmantech)


    When I upload any file , I am getting the error : Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.

    I tried uploading through ftp, but the file is not showing in the uploads. There is enough disk space and the file size is just 2MB. Tried uploading other file also, but same error. I checked that the issue is with pdf files only

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator threadi

    (@threadi)

    I suspect this is either a server-side error or a saving issue caused by a plugin you’re using. The fact that the problem only occurs with PDFs narrows it down significantly. WordPress is likely trying to generate a thumbnail for the PDF, but it’s failing.

    Check under Tools > Site Health to see if there are any messages there.

    Try deactivating all plugins as a test.

    Also check the error log in your hosting account for any potential errors.

    Thread Starter raunharmantech

    (@raunharmantech)

    Site Health shows no major issue. PHP version is 8.3. Enough space on server and web site. The same issue is on few more websites on same server (inmotion VPS).

    Tried deactivating the plugins and then upload, same error. So some wordpress installations , it is uploading, and on some not.

    Moderator threadi

    (@threadi)

    What does the error log say?

    Thread Starter raunharmantech

    (@raunharmantech)

    No error. Some pdf are uploading and some not.

    Hello,

    Some times hosting error effects while uploading files to Media Library in WordPress, so try to upload single single files than it works

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.