osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go
get it now
Attachments Plug-In: Storage-FS
Hi
Thankfully I have had no problem with installing this plug-in and no problems when testing it so far either. For reference, this is my setup:
osTicket Version v1.8.1.2
Server Software Apache/2.4.4 (Win32) OpenSSL/1.0.1e
PHP/5.5.3
PHP Version 5.5.3
MySQL Version 5.6.11
Database Space Used 164.61 MiB
Database Space for Attachments 1310.81 MiB
As you can see, my DB was being filled with attachments, making osTicket slow at times and requiring far too long to backup.
I have a few questions...
1. Now that I am using filesystem storage instead of DB storage, can I move/migrate existing attachments in the DB to the filesystem?
(I would like to free up space in my DB for the reasons mentioned above, whilst still having the attachments associated with their respective ticket.)
2. Can I specify the format for the filename of the attachment?
(I would like the filename to be recorded as it is sent/received in osTicket. This will make it easy to reference via the filesystem should I ever need to locate/delete a file manually. It is currently being stored as a random alphanumerical filename with no file extension.)
3. Can I specify the sub-directory within my attachments directory that the attachment it is stored in?
(It would be very good if the file storage directories could be created by month>year instead of the default alphabetical structure.)
Many thanks.
Comments
2. I believe that the reason your seeing hashes is to prevent people from guessing the file name and just browsing to it. (ie a security concern) So no, I do not believe that you can.
3. The plugin does not have that functionality, its very basic.
Also, thanks for maintaining osTicket to the extent that you and them team do. Updates and evolution of the software are much appreciated and valued by myself as a business owner.
php setup/cli/manage.php file migrate --backend D --to F
I am getting the following error message:
PHP Fatal error: Call to a member function getConfig() on a non-object in /www/htdocs/xxxxxx/ostest/include/class.error.php on line 29
Any hint on that ?
osticket# php /path/to/osTicket-v1.9.12_default/upload/setup/cli/manage.php file -h
returns: <html></html>