Unable to Upload Images to WordPress Media API – Timeout Issue

  • Unknown's avatar

    I’m having trouble uploading image files to my WordPress site via the REST API endpoint:

    Whenever I attempt to upload an image above 300KB or so, the request times out. Smaller images mostly upload without issue. I’ve verified the following:

    • The file is well within the upload limits set in php.ini (upload_max_filesize is 512M, post_max_size is 516M).
    • My PHP version is 7.4.33 with Apache.
    • There’s no firewall or proxy I’m aware of that should be blocking the request.
    • I receive a 503 or timeout error, depending on the client used.
    • The hosting support could not find anything blocking my call. the same calls worked fine in the past on the same hosting.
    • Tried to disable all plugins, with no luck. same issue persists.

    Could this be a server-side configuration, or something in WordPress setup that’s interfering? any recommended setups or plugins to address this?

    Any guidance would be appreciated.

  • Unknown's avatar
  • The topic ‘Unable to Upload Images to WordPress Media API – Timeout Issue’ is closed to new replies.