Unable to access any of my uploaded files on a WP site

Hello,

My WordPress (WP) site https://rehve.fr/ has been hacked. I am in the process of reinstalling everything, but to do that I need to download the files present in '/www/wp-content/uploads' and then upload them to the cleaned WP version. When I connect to this folder with FileZilla, I only have access to a limited number of files. Only files whose names start with A to E are displayed. Therefore I cannot download all the files used by the site. I consulted FileZilla’s online help which tells me it might be a "server limit" issue. I opened an OVH ticket on 04/01 but have not received a response yet.

By what means can I access the entirety of the files in '/www/wp-content/uploads' to download them?

Thank you in advance for your help.

Hello @HerveM9

The answer is here:

For better readability for forum contributors:
Could you embed the screenshots inside the post,
not as attachments.

Thank you.

You have more than 5000 files in this folder and FILEZILLA only allows viewing the first 4995 files.

Recommendation: Create folders with the following structure images/CCAA/MM

To do this, create a script that will perform these actions:

  • Retrieve the date of each file,
  • Create folders and subfolders,
  • Move each file,
  • Update the new path in the database.

I had to do this operation in 2009 on one of my sites.

Hello @HerveM9

The answer is here:

For better readability by forum contributors:
Could you embed the screenshots within the post,
not as attachments.

Thanks.

You have more than 5000 files in this folder and FILEZILLA only allows you to see the first 4995 files.

Recommendation: Create folders with the following structure images/CCAA/MM

To do this, create a script that performs the following actions:

  • Read the date of each file,
  • Create folders and subfolders,
  • Move each file,
  • Update the new path in the database.

I had to perform this operation in 2009 on one of my sites.

Hello,

I think the answer above is wrong.

The limit of 5000 files does not come from Filezilla, but from the FTP server implemented by OVH.

Do your transfers with SFTP: it’s faster, more secure.

Good evening,

With FILEZILLA in SFTP mode, I just performed a two‑way transfer of 10,002 image files between my PC and a personal OVH hosting.

After a round trip to OVH, I have indeed retrieved all my 10,002 files.

FILEZILLA correctly shows 10,002 files.

That said, personally, I think it’s not very healthy to have so many files in a single folder.

I therefore stick to my original recommendation.

Hello friends,

Many thanks for your contributions.

  1. I have just restored the organization of my 'uploads' files into year‑month subfolders, which will apply for the future. For the past, I will leave it as is because I fear creating a mess in the URLs if I were to reclassify them into subfolders.
  2. I just tested the SFTP connection with FileZilla, completely within my reach, and I now have access to the entirety of my 'uploads' files from letter A to Z; there are 20 k files totaling 7 GB.

So I will be able to start the complete reinstall of my site, which I will do in the coming days. I will keep you informed of the progress.

Have a great week everyone.

Thank you for your feedback