I need to replace the existing JIRA issue attach file button with my own file manager. It would have the same functionality, i.e., clicking it would cause a dialog to pop up where I can select one or more files for upload. Upon successful upload, I would need to refresh the attachment panel to show all the files. I am doing this to work around the 2GB file size limit and to have full control over the repository. What's the best way to do it?
I assume you are aware that both your user (accessing your JIRA through his browser) and your JIRA server need to support files bigger than 2 GB in order for that to work.
Having that said, you can take a look into file "jira/webapp/secure/views/issue/attachfile.jsp" and start from there maybe.
The problem is on the client side OS actually. Browsers usually just call the native FileOpen dialogs, that provide them with the chosen file name and then they use native FileOpen(), FileRead(), etc. methods to get the file content. The idea is that the client OS also needs to be able to support file sizes over 2 GB. The good thing is that most of the modern OS support that :)
P.S. One way to circumvent this limitation is to break the file apart on the user's side (so that each part is less than 2 GB in size), upload those parts on the server and join them, since you control the server and can configure it to support file sizes over 2 GB.
It started as any story starts, on a normal, rainy day. Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs