OsTicket can not view attachments receive through pipe

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:


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


Dette indlæg blev udgivet i Knowledge Base, Old Base. Bogmærk permalinket.

Skriv et svar