{"action":"created","issue":{"url":"https://api.github.com/repos/enyo/dropzone/issues/818","labels_url":"https://api.github.com/repos/enyo/dropzone/issues/818/labels{/name}","comments_url":"https://api.github.com/repos/enyo/dropzone/issues/818/comments","events_url":"https://api.github.com/repos/enyo/dropzone/issues/818/events","html_url":"https://github.com/enyo/dropzone/issues/818","id":54990557,"number":818,"title":"Setting defaultOptions for dropzone","user":{"login":"samheer","id":3831492,"avatar_url":"https://avatars.githubusercontent.com/u/3831492?v=3","gravatar_id":"","url":"https://api.github.com/users/samheer","html_url":"https://github.com/samheer","followers_url":"https://api.github.com/users/samheer/followers","following_url":"https://api.github.com/users/samheer/following{/other_user}","gists_url":"https://api.github.com/users/samheer/gists{/gist_id}","starred_url":"https://api.github.com/users/samheer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samheer/subscriptions","organizations_url":"https://api.github.com/users/samheer/orgs","repos_url":"https://api.github.com/users/samheer/repos","events_url":"https://api.github.com/users/samheer/events{/privacy}","received_events_url":"https://api.github.com/users/samheer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T08:28:36Z","updated_at":"2015-01-23T12:16:52Z","closed_at":null,"body":"Hi together, \r\nI found this code in the documentation to set the options for specific dropzone element:\r\n// Prevent Dropzone from auto discovering this element:\r\nDropzone.options.myAwesomeDropzone = false;\r\n\r\nMy question:\r\nIs it possible to set defaultOptions for all dropzones?\r\nDropzone.defaultOptions.dictDefaultMessage = \"My drop text\"\r\n\r\nSo that on all dropzones in my application the message would be \"My drop text\".\r\n\r\nThanks in advance.\r\nSam"},"comment":{"url":"https://api.github.com/repos/enyo/dropzone/issues/comments/71185757","html_url":"https://github.com/enyo/dropzone/issues/818#issuecomment-71185757","issue_url":"https://api.github.com/repos/enyo/dropzone/issues/818","id":71185757,"user":{"login":"berarma","id":162766,"avatar_url":"https://avatars.githubusercontent.com/u/162766?v=3","gravatar_id":"","url":"https://api.github.com/users/berarma","html_url":"https://github.com/berarma","followers_url":"https://api.github.com/users/berarma/followers","following_url":"https://api.github.com/users/berarma/following{/other_user}","gists_url":"https://api.github.com/users/berarma/gists{/gist_id}","starred_url":"https://api.github.com/users/berarma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berarma/subscriptions","organizations_url":"https://api.github.com/users/berarma/orgs","repos_url":"https://api.github.com/users/berarma/repos","events_url":"https://api.github.com/users/berarma/events{/privacy}","received_events_url":"https://api.github.com/users/berarma/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T12:16:52Z","updated_at":"2015-01-23T12:16:52Z","body":"You can overwrite Dropzone.prototype.defaultOptions like this:\r\n```js\r\nDropzone.prototype.defaultOptions.dictDefaultMessage = \"My drop text\";\r\n```"}}