#8203 Download button for a project

unreleased
open
nobody
None
General
nobody
2018-10-11
2018-06-05
Vrinda
No

I am new to Apache Allura and am trying to set it up locally to host a few projects.
I have installed Allura platform on Ubuntu 16.04 by following the installation guide:
https://forge-allura.apache.org/docs/getting_started/install_each_step.html
I could get the application server running and I am now able to create a new project.
How do I create the 'Download' button using which I want to allow downloading of the executable of the project?

In the feature list : https://forge-allura.apache.org/p/allura/wiki/Features/, I can see under Documentation that this is possible using custom wiki macros?? How can I do this?

Discussion

  • Dave Brondsema

    Dave Brondsema - 2018-06-05

    Hi,

    The Allura project itself doesn't support uploading & downloading file releases, unfortunately. The custom wiki macro is a reference to a customization used on SourceForge.net for its file release system (not part of Allura).

    If you have the file hosted somewhere else, you can link to it from a wiki page like:

    [Download](http://path.com/to/download)
    

    Or even use an image as the link:

    [![Download](https://path.com/to/image)](https://path.com/to/download)
    

    If you want to host the download on Allura instead of a different site, you could upload it as an attachment to a wiki page. That will work but may not perform very well especially for very large files.

    Hope that helps

     
  • Vrinda

    Vrinda - 2018-06-06

    Okay thanks.
    If I want to link to a file in the local server, what would be the syntax in wiki?

    I tried replacing the http paths with local file URIs like file:///home/blah/blah/image.jpeg but it wouldn't work.

     
    Last edit: Vrinda 2018-06-06
    • Dave Brondsema

      Dave Brondsema - 2018-06-06

      It doesn't look like the markdown converter handles file:// links, sorry. For security reasons I think both markdown and some browsers put restrictions on using file:// links.

      You'll have to put the file on your webserver and have the webserver serve it (or try attaching it to a wiki page, etc, within Allura)

       
  • Vrinda

    Vrinda - 2018-06-07

    I am able to set up a link to an ftp server.

    So a link like this works:

    {Download}(ftp://<server_ip>/../../image.jpeg)
    I replaced [] with {} so that the syntax is visible</server_ip>

    Thanks :)

     
    Last edit: Vrinda 2018-06-07
  • Ingo

    Ingo - 2018-10-11

    Correct, but I have to patch utils to extend allura to support sftp, ftps and our own URL handler.

    Not ideal. A setting would be preferable.

     

Log in to post a comment.