{"action":"created","issue":{"url":"https://api.github.com/repos/enyo/dropzone/issues/154","labels_url":"https://api.github.com/repos/enyo/dropzone/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/enyo/dropzone/issues/154/comments","events_url":"https://api.github.com/repos/enyo/dropzone/issues/154/events","html_url":"https://github.com/enyo/dropzone/issues/154","id":14999067,"number":154,"title":"hidden element","user":{"login":"Dedalus2000","id":2760504,"avatar_url":"https://avatars.githubusercontent.com/u/2760504?v=3","gravatar_id":"","url":"https://api.github.com/users/Dedalus2000","html_url":"https://github.com/Dedalus2000","followers_url":"https://api.github.com/users/Dedalus2000/followers","following_url":"https://api.github.com/users/Dedalus2000/following{/other_user}","gists_url":"https://api.github.com/users/Dedalus2000/gists{/gist_id}","starred_url":"https://api.github.com/users/Dedalus2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dedalus2000/subscriptions","organizations_url":"https://api.github.com/users/Dedalus2000/orgs","repos_url":"https://api.github.com/users/Dedalus2000/repos","events_url":"https://api.github.com/users/Dedalus2000/events{/privacy}","received_events_url":"https://api.github.com/users/Dedalus2000/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2013-05-31T15:35:31Z","updated_at":"2015-01-12T21:29:34Z","closed_at":"2013-05-31T15:37:58Z","body":"Tutorial says that \"Dropzone will submit any hidden fields you have in your dropzone form. So this is an easy way to submit additional data\"\r\n\r\nAs far I can understand -and test on my environmnet- it means that the server will receive the data only if I submit the whole form. Dropzone will not sent the hidden input elements when it upload a file.\r\n\r\nIs this the right behavior of dropzone?\r\n\r\nI need some data for each file sent; I could manage the hidden elements by javascript on the client side.\r\n\r\nThe check for additional  elements is done at row 1076:\r\n'if (this.element.tagName === \"FORM\") '\r\n\r\nit cuts out my elements if I didn't  submit the form.\r\n\r\nSo I'm going to use the \"params\":\r\n...\r\n     accept: function(file, done){\r\n        dz = Dropzone.forElement(\"#myAwesomeDropzone\");\r\n        dz.options.params['myparam1'] = ... ;\r\n..\r\n\r\nCould it be a good solution? If I drop files very fast can they mix the \"params\" values?\r\n"},"comment":{"url":"https://api.github.com/repos/enyo/dropzone/issues/comments/69649625","html_url":"https://github.com/enyo/dropzone/issues/154#issuecomment-69649625","issue_url":"https://api.github.com/repos/enyo/dropzone/issues/154","id":69649625,"user":{"login":"devneel","id":8497244,"avatar_url":"https://avatars.githubusercontent.com/u/8497244?v=3","gravatar_id":"","url":"https://api.github.com/users/devneel","html_url":"https://github.com/devneel","followers_url":"https://api.github.com/users/devneel/followers","following_url":"https://api.github.com/users/devneel/following{/other_user}","gists_url":"https://api.github.com/users/devneel/gists{/gist_id}","starred_url":"https://api.github.com/users/devneel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devneel/subscriptions","organizations_url":"https://api.github.com/users/devneel/orgs","repos_url":"https://api.github.com/users/devneel/repos","events_url":"https://api.github.com/users/devneel/events{/privacy}","received_events_url":"https://api.github.com/users/devneel/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T21:29:34Z","updated_at":"2015-01-12T21:29:34Z","body":"Ended up using this as a workaround:\r\n\r\n    form#prof-pic-upload.dropzone(action='/profile-pic-upload-post?submission_id=#{submission._id}', enctype=\"multipart/form-data\")"}}