I am outputting a log in the form of an HTML file but I can't link to it.

I am working on a test machine, and I am not sure where to put the file. Right now it is on my desktop and I create a link to it, I am getting an error. When I tried making making the file first as "./log.html" it places the file in my system 32 folder, so for my desktop, I made the link "../../Users/myName/Desltop/log.html"

now I get an error when I click on the link

/secure/Users/myName/Desktop/log.html

I don't have a folder named secure in my system32 folder. Where should I toss these files?

Oh I know the file is there, and I can open it manually with firefox.

1 answer

1 accepted

0 vote

I have no idea what the problem you have having is. Are you writing an html file with some groovy code? And you want to allow the users to click on a link to open it?

If my guesswork is correct, you need to put it somewhere under the installation where it's downloadable from, but I don't think that's a very good idea.

Actually I made a groovy script and it uses the file and filewriter to output the HTML file. I am just not sure where to put the files right now.

I know when we roll it out, the plan was to put them in the temp folder or a folder that only the webserver has access to.

I don't think tomcat will serve files from the temp folder. Charts and so on are served from there by a special "stream and delete" servlet. I would set up apache and write the files to somewhere under the document root.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

86 views 0 5
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you