mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-14 04:04:01 +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.timeout = 0,
|
||||
myDropzone.on("sending", function(file, xhr, formData) {
|
||||
if(document.getElementById("uploadcode"))
|
||||
formData.append("uploadcode", document.getElementById("uploadcode").value);
|
||||
});
|
||||
myDropzone.on('error', function(file, response) {
|
||||
|
||||
Reference in New Issue
Block a user