Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


OsTicket can not view attachments receive through pipe

Author:mike - Thu Dec 18 15:15:42 2008

Make sure /var/www/attachment is writeable to the user running pipe and also make sure that attachments are readable by the webserver. A very crude way of ensure this is like this:

./api/pipe.php:

112             if($filename && $cfg->canUploadFileType($filename)) {
113                 $ticket->saveAttachment($filename,$part->body,$msgid,'M');
114                 system("chmod 666 /var/www/attachment/*");
115             }
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk