mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-12 03:06:22 +00:00
fixing gui-upload filesize bug
This commit is contained in:
@@ -2,6 +2,8 @@ Dropzone.autoDiscover = false;
|
|||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
var myDropzone = new Dropzone("#dropzone");
|
var myDropzone = new Dropzone("#dropzone");
|
||||||
|
if(maxUploadFileSize !== undefined)
|
||||||
|
myDropzone.options.maxFilesize = maxUploadFileSize;
|
||||||
myDropzone.on("success", function(file,response) {
|
myDropzone.on("success", function(file,response) {
|
||||||
console.log("raw response: "+response);
|
console.log("raw response: "+response);
|
||||||
if(response==null || response =="null")
|
if(response==null || response =="null")
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var maxUploadFileSize=<?php echo (int)(ini_get('upload_max_filesize'));?>
|
||||||
|
</script>
|
||||||
|
|
||||||
<meta name="description" content="Free image sharing, linking and tracking">
|
<meta name="description" content="Free image sharing, linking and tracking">
|
||||||
<meta name="keywords" content="image, share, hosting, free">
|
<meta name="keywords" content="image, share, hosting, free">
|
||||||
<meta name="robots" content="index, follow">
|
<meta name="robots" content="index, follow">
|
||||||
|
|||||||
Reference in New Issue
Block a user