• I need all the help.
    I have been trying to reduce the storage space on our site for the last couple of weeks. I spent about 150 hours deleting 45,000 photos of our 98,000 off of wordpress.
    Our site storage size did not decrease AT ALL. So I connected with WPEngine. I logged into FileZilla, where I found a complete mismatch of files. Long story short, while our media files are in their correct year/month folders in WordPress’ media library, they are in completely wrong ones on the SFTP/server side. WPEngine says this is a WordPress issue and WordPress must guide me to correct. Not to mention, those 45,000 images I deleted from the media library? All still living and well with each thumbnail size in the server.
    I cannot revert my site back to any point, so I need to find a way to force my server to adapt what WordPress shows. At the bare minimum I need to force the media files into their correct folders on the server side. (again, I do not grasp how this is NOT a server issue, but after 3.5 hours with their tech support I am giving into their direction of it being something WordPress must solve).

    • This topic was modified 3 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Determine where WP is actually placing media files. Normally /wp-content/uploads/ but can be overridden. Temporarily place on a template: <?php echo wp_upload_dir()['basedir']; ?>. It’ll output the full server path to its uploads folder. Any media outside of this is not used by WP media library.

    If you want to alter where uploads go, define the constant UPLOADS to a value of the desired uploads folder path relative to the WP installation. Note that doing so means all media in the old location needs to be moved to the new to remain usable by WP.

    It’s conceivable that a plugin could take over the entire process and store media nearly anywhere on the Internet. If you have any sort of plugin that might do this you’d need to seek guidance from dedicated plugin support.

Viewing 1 replies (of 1 total)
  • The topic ‘Media Files not in the correct folders on server’ is closed to new replies.