mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-13 19:56:23 +00:00
only add when upload coede is configured
This commit is contained in:
@@ -7,6 +7,7 @@ $(function () {
|
|||||||
myDropzone.options.maxFilesize = maxUploadFileSize;
|
myDropzone.options.maxFilesize = maxUploadFileSize;
|
||||||
myDropzone.options.timeout = 0,
|
myDropzone.options.timeout = 0,
|
||||||
myDropzone.on("sending", function(file, xhr, formData) {
|
myDropzone.on("sending", function(file, xhr, formData) {
|
||||||
|
if(document.getElementById("uploadcode"))
|
||||||
formData.append("uploadcode", document.getElementById("uploadcode").value);
|
formData.append("uploadcode", document.getElementById("uploadcode").value);
|
||||||
});
|
});
|
||||||
myDropzone.on('error', function(file, response) {
|
myDropzone.on('error', function(file, response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user