I'm getting error in my WordPress Media Library

What is the name of the domain?

What is the error number?

error number not available or listed.

What is the error message?

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

What is the issue you’re encountering

Can’t Upload Audio files in my WordPress Media Library.

What steps have you taken to resolve the issue?

Contacted my web hosting Cloudways, but haven’t resolve issue.

What feature, service or problem is this related to?

I don’t know

What are the steps to reproduce the issue?

Tried Uploading Audio track files again, but still getting error.

Screenshot of the error

May I ask if you’re using a Free or Paid plan type for your zone?

May I ask if you were uploading multiple files at once, and was any of them, or all in total exceeding 100MB? :thinking:

Did the request took more than 100 seconds to upload a file or more files in a batch?

Not sure what you mean, Free or Paid plan type for your zone, but I have a paid plan with Cloudflare.
Uploading one file at a time.
The kind and size, Waveform audio and 167,413,052 bytes (167.4 MB on disk)… taken from get info from file.
Haven’t time how long it takes to Upload, but I’d say, a minute.

This might happen to be that you’ve exceeded the upload limit per file over a proxied :orange: DNS record (your zone) which is 100MB, and as well experienced an Cloudflare timeout error if upload took more than 100s which is default for Cloudflare :orange: as well (if not an paid, Enterprise customer which can change both maximum file upload limit and timeout limit as well as per docs state).

Only Enterprise plans can increase the timeout, while the upload filesize can be changed from Business and up. The upload body size limit is 100MB on Free and Pro accounts, 200MB on Business and 500MB and over on Enterprise. Enterprise users only can request and increase as well.

A temporary workaround is to either:

  1. Unproxy :grey: (DNS-only) your DNS records, upload what’s needed, once done, switch back to proxy :orange:.
  2. Use the “Pause Cloudflare” option from the Cloudflare dashboard, upload what’s needed, ocne done, un-pause.

I’d also suggest to consider double-checking your PHP values for parameters related to the File Uploads, such as upload_max_filesize, post_max_size and max_file_uploads with your host and Web hosting provider. Good to check memory_limit, max_input_time and max_execution_time as well.

Thank you for helping me out.
Sorry, made a mistake with my Cloudflare plan, it’s showing Free.
I Unproxy A and CNAME and was able to Upload smaller size Audio files.
It sounds like the error is with Cloudflare and not my web hosting, Cloudways, correct?

If you’d check Developer Tools (F12) and Navigate to the Console and Network tab while uploading such files to your WordPress Website while your DNS records are proxeied :orange:, you might get some error such as 524 timeout. If yes, then it’s the default settings on Cloudflare which you might not be able to modify since you’re on a Free plan type.

If this repeats, please consider using a workaround as stated from my above reply.

In my Cloudways settings, increased Post and Upload to 5000M, but still having error with the the larger size Audio files.

Console error… “Failed to load resource: the server responded with a status of 500 ( )”

Cloudflare proxy :orange: for your plan type doesn’t allow it, therefrom it doesn’t affect proxied hostname.

That sounds like an error code from the origin server.
Have you tried using the suggested methods from my above reply? Does it work normally then?

Are you running out of disk space on your hosting?

I changed only the Cloudways settings for Post and Upload to 5000M, but no change.

Don’t know how much if any to change these settings; memory_limit, max_input_time and max_execution_time?

I also did the workaround suggestions in Cloudflare, but no change.

Maybe it’s just a coincidence, but now google Chrome and Safari website’s for tapes inner pages, are not in sync.

Have you had when google Chrome and Safari are not in sync?

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