Domanda

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 ?

È stato utile?

Soluzione

We can simply disable that like this:

$("#fileupload").fileupload({
    pasteZone: null   //make it $(document) or specific container for enabling it
})
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top