Hello, I'm getting a very strange problem with your plugin.
The $_FILES return empty many of the times, but not "ALL" the time, which is really really strange to me. One night, it will work, but the next it won't.
I've checked obvious disk space, PHP things, etc. But I have noticed that its not sending the files Headers level, meaning the image is not even being transferred through the headers to the post file. Response and all comes back normal, but since there are no files being transfered it sorta defeats the purpose.
IF you have any pointers I would greatly appreciate it.
Using current version, when dropdown is selected, loads instance with galleryID to upload form. Jquery version "jQuery v1.11.1"
<script>
$("#uploadHide").hide();
var gallerySelection = $("#galleryName").val();
$("#galleryName").change(function() {
if($("#galleryName").val() != "default") {
$("#uploadHide").show();
} else {
$("#uploadHide").hide();
}
$("#uploadHide").html("<div id=\'multipleupload\'>Upload</div><div id=\'status\'></div>");
$("#multipleupload").uploadFile({
url: "'.$this->action('addImage').'",
method: "POST",
allowedTypes: "jpg,png,gif,jpeg",
fileName: "myfile",
multiple: true,
showStatusAfterSuccess: false,
formData: {
"galleryName": $("#galleryName").val(),
"ccm_token": "'. $vt->generate("uploader") .'"
},
onSuccess: function(files,data,xhr) {
$(".ccm-dashboard-page-header").after(\'<div class="ccm-ui" id="ccm-dashboard-result-message"><div class="alert alert-success"><button type="button" class="close" data-dismiss="alert">x</button>\' + data + \'</div></div>\');
$("#ccm-dashboard-result-message").delay(8000).fadeOut("slow");
},
onError: function(files,status,errMsg) {
$(".ccm-dashboard-page-header").after(\'<div class="ccm-ui" id="ccm-dashboard-result-message"><div class="alert alert-success"><button type="button" class="close" data-dismiss="alert">x</button>\' + data + \'</div></div>\');
$("#ccm-dashboard-result-message").delay(8000).fadeOut("slow");
}
});
});
</script>