You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you happen to back up your Attachments folder to a Windows computer, the names for the folders are both upper and lower case. That is, this plugin creates subfolders a-z and A-Z, both upper and lowercase folder names, based on the file names created by the storage system. So when you go to copy your Attachments to a Windows computer, the lowercase "a" folder is merged with the uppercase "A" folder.
I tried to fix this by addding strtoupper() around line 69 of storage.php: $prefix = strtoupper($prefix);
but that generates an error somewhere else when the file is saved (though it is saved into an uppercase-named folder).
As a workaround I am attempting to modify include/class/misc.php around line 19 to give it only uppercase letters:
function randCode($len=8, $chars=false) {
// was $chars = $chars ?: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890_=';
$chars = $chars ?: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890_=';
but I don't think that really works.
It would also be great if the files were not named randomly and could keep their extensions, though that is probably a security feature?
The text was updated successfully, but these errors were encountered:
If you happen to back up your Attachments folder to a Windows computer, the names for the folders are both upper and lower case. That is, this plugin creates subfolders a-z and A-Z, both upper and lowercase folder names, based on the file names created by the storage system. So when you go to copy your Attachments to a Windows computer, the lowercase "a" folder is merged with the uppercase "A" folder.
I tried to fix this by addding strtoupper() around line 69 of storage.php:
$prefix = strtoupper($prefix);
but that generates an error somewhere else when the file is saved (though it is saved into an uppercase-named folder).
As a workaround I am attempting to modify include/class/misc.php around line 19 to give it only uppercase letters:
but I don't think that really works.
It would also be great if the files were not named randomly and could keep their extensions, though that is probably a security feature?
The text was updated successfully, but these errors were encountered: