Title: Extend Options
Last modified: November 9, 2018

---

# Extend Options

 *  Resolved [callumalden](https://wordpress.org/support/users/callumalden/)
 * (@callumalden)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/extend-options/)
 * Hello, thanks for creating this plugin. My question- is it possible to load further
   options for Dropzone, ideally I’d define them in a separate JS file:
 * ie.
    dropzone.on(“dragEnter”, function() { console.log(‘do something’) });
 * Rather than edit your wonderful code?
 * I tried, loading a separate main.js file at the end of the template (after your
   plugin loads), with various dropzone.on functions… but I get ‘Uncaught ReferenceError:
   dropzone is not defined’.
 * Perhaps you know the solution. I basically want to make a lot of customisations
   to the upload progress… which I currently have working great on a Vanilla Dropzone
   JS. Now I’m keen to migrate to your plugin!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [callumalden](https://wordpress.org/support/users/callumalden/)
 * (@callumalden)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/extend-options/#post-10863758)
 * I think I have it, in my new JS file I use:
 * Dropzone.prototype.on(“error”, function….. etc
 * One question- setting top options like this does not seem to work, for example:
 * Dropzone.prototype.options = {
    maxFiles: 1, acceptedFiles: ‘image/*’, dictInvalidFileType:‘
   This form only accepts images.’, maxThumbnailFilesize: 99, thumbnailWidth: 800,
   thumbnailHeight: null };
 * … this doesn’t seem to take effect. Is there another option to make these adjustments
   from a separate JS?
 *  [mdsabuz](https://wordpress.org/support/users/mdsabuz/)
 * (@mdsabuz)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/extend-options/#post-10869888)
 * Try like this: [wp-dropzone callback=”dragEnter: function() { console.log(file)}”]
 *  Thread Starter [callumalden](https://wordpress.org/support/users/callumalden/)
 * (@callumalden)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/extend-options/#post-10872686)
 * Nazmul, thank you very much!
 *  [mdsabuz](https://wordpress.org/support/users/mdsabuz/)
 * (@mdsabuz)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/extend-options/#post-10876822)
 * You’re welcome!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Extend Options’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-dropzone.svg)
 * [WP Dropzone](https://wordpress.org/plugins/wp-dropzone/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-dropzone/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dropzone/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dropzone/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dropzone/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dropzone/reviews/)

## Tags

 * [dropzone](https://wordpress.org/support/topic-tag/dropzone/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 4 replies
 * 2 participants
 * Last reply from: [mdsabuz](https://wordpress.org/support/users/mdsabuz/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/extend-options/#post-10876822)
 * Status: resolved