WordPress Media Library file upload fails without error
For a long time, the issue with uploading files to Media Library was there in the blog. Since I wasn’t updating it frequently, it wasn’t bothering me much
When I tries to upload a media file, everything goes smoothly, but finally the file won’t be there in the uploads directory. I played a lot with file/directory permissions, but without success. The same configuration works in other wordpress blogs too.
Figured it out today that the issue was with the Media Path where files are to be stored, which can be found at <wordpress url>/wp-admin/options-media.php or the direct database entry “upload_path” in “options” or “wp_options” table depending on the table prefix.
I might have forgot to update the upload path when the site was migrated to the new server.