Website Development Australia | Website Developers

media gallery upload error

How to fix WordPress Error "Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page."

Steps = 5 / Duration = 2 mins

We were looking online for a guide to fixing this error within the WordPress media gallery when uploading a .mp3 file and found no support for the issue. After finding a solution we decided to put together a simple guide to help you out in 5 easy steps. 

Step 1. Login to your Cpanel. If you do not know the credentials login to your hosting account and navigate to your Cpanel.

Step 2. Once you are in the Cpanel open your ‘file manager’. 
*Important – ensure you have ‘show hidden files’ selected.

show hidden files cpanel
IMG - Show Hidden Files

Step 3. Click search and type ‘php.ini’ -> Right click this file and choose edit.

Step 4. Within the php.ini file change the following values:
memory_limit = 256M
post_max_size = 76M
upload_max_filesize = 64M

*You may need to adjust the values to higher numbers for larger files.

php ini file change
IMG - Change PHP values

Step 5. Save the file, refresh your media gallery and upload your media file.

*Please Note – You may need to search for your user.ini file and repeat the steps above that you did with the php.ini file.