Using javascript to override JIRA file upload behavior

PR_4Christ

New Member
I am making a Java plugin for JIRA which uses file upload. The JIRA behavior while uploading (selecting a file in \[code\]input type="file"\[/code\]) a file is as follows:
  • The file is uploaded via ajax
  • A checked checkbox is added above the file input box
  • The input box becomes empty and allows another attachment, which results in points 1 and 2, allowing multiple files to be attached
I want the upload element to behave normally (upload onlz one file), but I seem unable to disable the default behavior. So what I want to do after the file is uploaded (after the above events happen) is:
  • Remove the checkbox element
  • Fill the filename in the file upload input element
Would this be possible using javascript?
 
Back
Top