Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where to store users file ? (path on server)

abhi shirbhate July 31, 2015

I'm building plugin where I required to store users file and later allow them to access. I am currently able to store file on jira's home directory but to access file I have to restart server otherwise I am getting 404 error.
So it will be very helpful if anyone can tell me path should use to store file on server and how to access them in front-end ?

Thanks in advance. 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 31, 2015

I'd use the attachments functions, they already do exactly that, without needing a restart.

abhi shirbhate August 1, 2015

Can you please explain in depth. An example will be great help.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 2, 2015

A simple way to do this would be to have issues for the users to attach files to. In your code, you can use https://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/AttachmentManager.html to handle them, saving you having to write all the upload/download/store code yourself. If you don't want them as attachments, you're going to need to find or write a whole subsystem to do storage inside JIRA (I've not done that before, so I'm unsure where to start)

TAGS
AUG Leaders

Atlassian Community Events