Output of the file size

2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 15, 2018   (RSS)

By ErinNoble - November 13, 2018

After two years of hassle-free uploading so many images to a directory, GoDaddy says we can not exceed 1024 files / folders per directory.

The problem is that we have 12,000 images in the main directory of the uploads and the same in the directories Thumbs 1 and Thumbs 2 (different image sizes).

1.) Has anyone ever heard of a host restricting this?

2.) Is there a way to split the directories and maintain the correct link? Move pictures and execute SQL query?

No help would be appreciated!

By Dave - November 15, 2018

Hi ErinNoble, 

Some operating systems or filesystems might have limits but they're way higher than that. 
Ref: https://stackoverflow.com/questions/466521/how-many-files-can-i-put-in-a-directory

If you're on a lower cost GoDaddy plan the simplest option might be to ask if upgrading to another plan has that limitation.  Also, consider that PHP 5 will be end-of-life'd (by PHP) at the end of the year so you could also see about getting a plan that supports PHP 7.  

If that's not an option you could setup different custom upload folders for different upload fields, but you'd need to manually move the files and update the MySQL data.  Unfortunately, there's no easy way to migrate existing images.

Dave Edis - Senior Developer

interactivetools.com