Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

File Attachment Plugin - Folder Naming

Hello, 

I have been using the file attachments plugin to send attachments to folders outside the database and link back to them to keep my database small.

I think my problem is with the naming of the folders that are automatically created to store attachments. They are created in both uppercase and lowercase. For example it will create one folder named “c” and another one named ”C”. Please see attached screenshot of my attachments folder.

My backup program (Akeeba Solo Pro) ignores capitalization and merges folders named the same. My Mac computer does the same thing when I direct download the attachments folder to my mac.

Is this normal for the file attachments plugin to create both upper and lowercase folders?
Can the plugin be forced to make folder named only in lowercase or only uppercase?

I appreciate your help, thoughts or guidance with this issue.



osTicket Version v1.10 (901e5ea) 
Web Server Software Apache/2.2.22
MySQL Version 5.6.33
PHP Version 7.0.6
Tagged:

Comments

  • I will attempt one more time to include a screen shot for my post above.
    image
  • Can anyone hint at what I might look at to see why folders are being created in both lowercase and uppercase?
  • Q: Is this normal for the file attachments plugin to create both upper and lowercase folders?
    A: Yes.

    Q: Can the plugin be forced to make folder named only in lowercase or only uppercase?
    A: No.  Well okay it can be if you know PHP and want to edit the plugin.

    Q: Can anyone hint at what I might look at to see why folders are being created in both lowercase and uppercase?
    A: You would look at and edit the storage-fs/storage.php to change that behavior.  I imagine that you could throw in a simple strtolower() in there some where.  (Note my guess would be in getPath() around $hash[0].  I have no idea if this is all that you would have to do though.
  • Thank you for the response and knowledge. It was very helpful and appreciated.
  • Very welcome. 
    :)
Sign In or Register to comment.