This commit is contained in:
botanic 2014-09-05 01:20:00 -07:00
parent 147fa8f403
commit 8a1a88d48c
2 changed files with 10 additions and 2 deletions

View file

@ -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!";
?>

View file

@ -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
});
});
</script>
{/literal}
<div id="filesUploaded"></div>
<div class="control-group">
<label class="control-label"></label>
<div class="controls">