How Confluence implement downloads

I am trying to create a 'hit-counter' of sorts and would like to know how confluence handles client downloads (server-side) when a link on a page is clicked. The counter is intended as a way of tracking how many time a piece of in-house software (a tarball linked to a page) is downloaded by customers.

More specifically my question is:

How does the confluence application know the following when a link in a page is clicked:

  1. Whether the download is cancelled when the File Download dialog box is presented by the client browser
  2. Whether there is some interruption in the connection before the download completes

2 answers

1 accepted

0 votes
Accepted answer

What you want to do is very complex because of the nature of HTTP and the cross-browser incompatiblities. There might be a JavaScript library that supports such features, so I would start there.

So I am not opposed in anyway to implementing a solution with JavaScript however, at this point I am more so interested specifically in what is the current implementation of initiating the download once a link is clicked.

For instance, is one of the servlet processes that is always waiting for such a request to come from any link in the running tomcat instance?

Or something more like a download server routine running?

I would like to further clarify that I am asking this:

Does confluence implement anything like a download manager to handle serving files that maybe embedded by way of a link?


Does clicking on an embedded link simply load the URL into the clients browser using default browser behavior?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

889 views 45 7
Join discussion

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