From 8a1a88d48c556bfd4841ebf68b83fc2a8606b2aa Mon Sep 17 00:00:00 2001 From: botanic Date: Fri, 5 Sep 2014 01:20:00 -0700 Subject: [PATCH] Fix #190 --- code/web/public_php/ams/func/upload.php | 6 ++++++ code/web/public_php/ams/templates/show_ticket.tpl | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/code/web/public_php/ams/func/upload.php b/code/web/public_php/ams/func/upload.php index fdf9f6fd7..ced82c48e 100644 --- a/code/web/public_php/ams/func/upload.php +++ b/code/web/public_php/ams/func/upload.php @@ -28,7 +28,13 @@ session_start(); $fileParts = pathinfo($_FILES['Filedata']['name']); Ticket::add_Attachment($_GET['id'],$_FILES['Filedata']['name'],$_SESSION['id'],$tempFile); + echo "Uploaded :".$_FILES['Filedata']['name']; + } else { + echo "Upload Failed!"; } + echo "Upload Failed!"; } + echo "Upload Failed!"; } + echo "Upload Failed!"; ?> diff --git a/code/web/public_php/ams/templates/show_ticket.tpl b/code/web/public_php/ams/templates/show_ticket.tpl index 19d35b98d..b832f29b1 100644 --- a/code/web/public_php/ams/templates/show_ticket.tpl +++ b/code/web/public_php/ams/templates/show_ticket.tpl @@ -141,12 +141,14 @@ 'multi' : true, 'method' : 'post', 'swf': 'misc/uploadify.swf', - 'uploader': 'func/upload.php?id='+{/literal}{$ticket_id}{literal} + 'displayData': 'percentage', + 'uploader': 'func/upload.php?id='+{/literal}{$ticket_id}{literal}, + 'removeCompleted' : false }); - }); {/literal} +