itechpros / servoy-web-components

Servoy Web Components and ngServices
http://servoycomponents.com/components/web-components
0 stars 1 forks source link

Dropzone onDataChange doesn't always fire #4

Open sbutlerjr opened 4 years ago

sbutlerjr commented 4 years ago

If you upload the same file twice in a row, the onDataChange doesn't fire. How should that be handled? essentially the dataprovider holding the bytes doesn't change, so servoy doesn't fire the onDataChange. Should it get cleared out after an upload?

sheinin commented 4 years ago

It seems to work when Media variable is set to null (m=null) after "plugins.file.writeFile()" command in onDataChange callback. I put a note into README.md.