Fix #190
This commit is contained in:
parent
147fa8f403
commit
8a1a88d48c
2 changed files with 10 additions and 2 deletions
|
@ -28,7 +28,13 @@ session_start();
|
||||||
|
|
||||||
$fileParts = pathinfo($_FILES['Filedata']['name']);
|
$fileParts = pathinfo($_FILES['Filedata']['name']);
|
||||||
Ticket::add_Attachment($_GET['id'],$_FILES['Filedata']['name'],$_SESSION['id'],$tempFile);
|
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!";
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -141,12 +141,14 @@
|
||||||
'multi' : true,
|
'multi' : true,
|
||||||
'method' : 'post',
|
'method' : 'post',
|
||||||
'swf': 'misc/uploadify.swf',
|
'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>
|
</script>
|
||||||
{/literal}
|
{/literal}
|
||||||
|
<div id="filesUploaded"></div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label"></label>
|
<label class="control-label"></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
Loading…
Reference in a new issue