Javascript .change event on File Upload object in V6

Confluence User - 26 Apr, 2018

Hi,

We have, in a V4 cloud edition, a script in a custom html field that is linked to the .change event of a File Upload object.  Since the upgrade to V6, the event is not fired anymore.  Could someone help me?

Thank you very much in advance.

Daniel

Code sample :

<script type="text/javascript">
//when File is selected (field "attachment" is changed)
$('#attachment').change(function(){
alert("File has been attached");
});
</script>

forms

1


26 Apr, 2018
confluenceUser
confluenceUser

Hi, I found dropzone.js is used in the source code. Maybe you will need to use the event provided by the library.

https://github.com/jogetworkflow/jw-community/blob/6.0-SNAPSHOT/wflow-core/src/main/resources/templates/fileUpload.ftl#L4

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print