@trayan Your code looks almost like some I have on a dropzone form. Only thing I see different is that the option for max filesize I have it like this:
maxFilesize: 2,
Without the capital S. Also I have:
enctype="multipart/form-data"
In my form element. I think you need that to make it work correctly?