I am using dropzone.js as per my requirement.
I want to use div as file upload control like when user drag & drop a file in the div it should show uploaded files and when user click submit button , it should go to server, next other stuff.
But here I am facing problem like, with Form only it is working, when i am uploading a file it is directly going to server with file, i have written like
<form action=~/Employer/GetFile method=post enctype=multipart/form-data class=dropzone id=dropzoneForm style=width: 50px; background: none; border: none;>
<div class=fallback>
<input name=file type=file />
<input type=submit value=Upload />
</div>
</form> // Working Fine ,
<div class=watermark pull-left margin-top-1 dropzone id=divDropFile></div> // Not wroking,
it should upload file(s) only like dropzone.js without destination urls, it should go to server when click on file upload button only. Moreover, file drop is not working.
Please help me anyone.. if it is not possible without form submit, please give any suggestion for alternative solution.