How to automaticly push file into owned hosted Files recode - Forum - Rollbase - Progress Community

How to automaticly push file into owned hosted Files recode

 Forum

How to automaticly push file into owned hosted Files recode

This question is answered

Hi,

  We have many file into Hosted Files and in Develepement phase , we need push many time a new version of file.

How to push hosted file from another soft into rollbase?

Verified Answer
  • The directories in RollbaseDirectory\Pas_Instance\rollbase\storage\ are customer tenant IDs. You can check it under Subscription Details which can be found by clicking the arrow icon on the upper right part of your screen.

    The hosted files are stored in images folder. While you might be able to update the file directly, it does not reflect on the Rollbase application side. Perhaps an FTP server is not the solution here but rather a way to load external files to server-side script. 

All Replies
  • Hi Adrien,

    Are you looking for an FTP solution similar to FileZilla(https://filezilla-project.org/) in Rollbase? Are you on a hosted cloud or private cloud?

    If you're on private cloud you can setup your server as an FTP server. This way, the files will be hosted hosted on the same domain and you will access the files individually using static URLs instead of hosted file tokens.


    Regards,
    Godfrey
  • I am in private cloud.

      How turn server as an ftp ? (config tomcat? or windows?)

     What static uri for hosted file ?

  • I previously worked in a Rollbase private cloud environment with an FTP on the same domain but I haven't personally tried doing the setup. Let me research on the process further.

    For the static URL, I am referring to the URLs used to access files on an FTP server.
    Example:
    https://domain.com/images/image1.png
    https://domain.com/images/image2.png
    https://domain.com/images/image3.png

    Hence, you will not be using hosted file tokens (e.g. {!#HOSTED_FILE.123456}).
  • Oki , but a use many hosted file for server side api.

    And this methode is not possible.

  • You can keep using hosted files for your scripts. Unlike images, they can be updated from Rollbase without uploading the files.

  • Thx, but i have acctually 20 js file in hotes script . I edit file in visual studio because i use typescript language. After modification i need to deploy  modifie 20 hosted file row.

    I want create a automaticly process from visual studio to push file in Rollbase.

    in RollbaseDirectory\Pas_Instance\rollbase\storage i find temp_1111111.js file with my file but a don't understand the logic of this directory.

  • The directories in RollbaseDirectory\Pas_Instance\rollbase\storage\ are customer tenant IDs. You can check it under Subscription Details which can be found by clicking the arrow icon on the upper right part of your screen.

    The hosted files are stored in images folder. While you might be able to update the file directly, it does not reflect on the Rollbase application side. Perhaps an FTP server is not the solution here but rather a way to load external files to server-side script. 

  • Thx ,

    but name file is not same after update, is not possible.

    I now propose a idea.

  • You have my vote on this idea.

    I tried uploading the script to a "file upload" field in SETTINGS object so it can be accessed from any script in Rollbase. The value of the file upload gets updated in Rollbase when editing the physical file. However the text from the script cannot be read from the formula box.