When even I paste any image(on a text input box for example), it is getting uploaded by jquery file uploader.
So, how to stop this?

From the options page(https://github.com/blueimp/jQuery-File-Upload/wiki/Options), the event that is triggered after paste is 'fileuploadpaste'.

Normal jquery event fired after text paste is 'textInput'.

So, how to disable this upload ?

有帮助吗?

解决方案

We can simply disable that like this:

$("#fileupload").fileupload({
    pasteZone: null   //make it $(document) or specific container for enabling it
})
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top