From dc0f47cd9eaa418dbdcf6976eba4837cca8b930e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 14 Jul 2019 12:17:16 +1000 Subject: [PATCH] fixes for file upload --- app/Ninja/Tickets/Inbound/InboundTicketService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Tickets/Inbound/InboundTicketService.php b/app/Ninja/Tickets/Inbound/InboundTicketService.php index a3a5e3598641..582cc530c6c8 100644 --- a/app/Ninja/Tickets/Inbound/InboundTicketService.php +++ b/app/Ninja/Tickets/Inbound/InboundTicketService.php @@ -123,7 +123,7 @@ class InboundTicketService $doc = []; $doc['file'] = $attachment->download(); - $doc['filePath'] = sys_get_temp_dir().$attachment->Name; + $doc['filePath'] = sys_get_temp_dir().'/'.$attachment->Name; $doc['fileName'] = $attachment->Name; $doc['ticket_id'] = $ticket->id; $doc['user_id'] = $ticket->user_id;