Providing a file download from PBA-S store

Discussion in 'Troubleshooting' started by Theloneus, Jun 10, 2014.

  1. Theloneus

    Theloneus Kilo Poster

    Messages:
    13
    Hi, I've got some installers that I want to have available for download from the PBA-S store, however they do not allow me to download them. Things like PDFs download just fine.

    What do I need to change in the system to make exe files downloadable as well?
     
  2. dkolvakh

    dkolvakh Odin Team

    Messages:
    353
    Theloneus, please provide more details. I'm not sure that understand you right.
     
  3. Theloneus

    Theloneus Kilo Poster

    Messages:
    13
    Where should I store files in the PBA-S container in order to host downloadable files?
     
  4. Theloneus

    Theloneus Kilo Poster

    Messages:
    13
    I ended up figuring this out. I had to edit my hspc_rewrite.conf file like so, I also added xml for sitemaps:
    Code:
    RewriteRule	\.(ico|gif|jpg|png|css|js|pdf|shtml|html|txt|[B]exe[/B]|xml)$ - [PT]
    
    after making changes:
    Code:
    service httpd restart
    
     
  5. dkolvakh

    dkolvakh Odin Team

    Messages:
    353
    Theloneus,

    Alternative solution can be a custom code or module for Symfony designed for files download, with appropriate custom controller, to not make direct links to files or store them in safe place.
     

Share This Page