Wordpress: Unexpected Response from the Server. the File May Have Been Uploaded Successfully. Check in the Media Library or Reload the Page

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

The mentioned error is generic, it may refer to more than one possibility, so check this out:

  • Maybe you enabled Cloudflare with basic plan in your hosting, if so, Cloudflare limits the upload to 100 MB.
  • Maybe you mixed content on your website, with some pages refering to http and other pages refering to https. If so, please check the link: https://websitesetup.org/http-to-https-wordpress.
  • Maybe you installed security plugin.

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

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

Try doing following steps:

Open Cpanel -> File manager
Click search and type 'php.ini' -> Right click this file and choose edit.

change value of following

memory_limit 
post_max_size
upload_max_filesize

Adjust the values to higher numbers for larger files. Save and try again uploading.

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

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

Cannot Upload .GLB to Wordpress Media Location

This must be a server thing. probably a run time error

Whoever supported you just doesn't know it. GoGoDaddy. ;)

Nevertheless... you can Use a plugin that's called

media sync. Check it out and best of luck

Media file uploads go to /wp-content instead of /wp/wp-content in a subdirectory-installed instance of WordPress

It turns out that when this happens there's an absolute path that needs to be updated in the database. I found this out from this post...

http://kb.enoi.se/i-can-not-upload-images-to-my-wordpress-site-after-moving-it/

In short look in the wp_options table for and edit the row where the column name option_name = upload_path. Then change the option_value from the absolute path to have the correct subdirectory path. It will be something like...

/home/username/public_html/wp-content/uploads

Change it to to have your correct subdirectory, in my case wp..

/home/username/public_html/wp/wp-content/uploads

Wordpress media library broken after uploading PDF

I've got it now, finally. Somehow all my tables in the database lost their primary keys and their auto-increment feature. So obviously wordpress added new entries with ID = 0, but wordpress starts counting at 1, this is, what broke my media library.

I just went ham and replaced every table with a new one and copied the old values. This solved the problem. The wordpress documentation helped a lot!

https://codex.wordpress.org/Database_Description



Related Topics



Leave a reply



Submit