Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate shorter folder names in FileUtils::generateUniqueUploadPath #11090

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bleistivt
Copy link
Contributor

$subdir = randomString(12).'/';

This will create up to 36^12 (4.738.381.338.321.616.896) different folders.
This does not help reduce file system load in any way, it is probably even worse than just dumping every upload in a single folder.

The old implementation creating folders from 0 to 999 is restored with this fix.
See:
3108657#diff-db1553fc5ca69f1a7449390029c1ba07a3eb80beac707e6b13c06098ff424405L281

@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale For stale issues that will be automatically closed. label Sep 21, 2022
@bleistivt
Copy link
Contributor Author

Still a problem.

@stale stale bot removed the Status: Stale For stale issues that will be automatically closed. label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant