How to automaticly push file into owned hosted Files recode

Posted by nidk on 24-Feb-2015 02:30

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?

Posted by Godfrey Sorita on 26-Feb-2015 13:08

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

Posted by Godfrey Sorita on 24-Feb-2015 12:24
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
Posted by nidk on 25-Feb-2015 06:23

I am in private cloud.

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

 What static uri for hosted file ?

Posted by Godfrey Sorita on 25-Feb-2015 08:49
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}).
Posted by nidk on 26-Feb-2015 02:27

Oki , but a use many hosted file for server side api.

And this methode is not possible.

Posted by Godfrey Sorita on 26-Feb-2015 07:13

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

Posted by nidk on 26-Feb-2015 10:00

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.

Posted by Godfrey Sorita on 26-Feb-2015 13:08

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. 

Posted by nidk on 27-Feb-2015 04:24

Thx ,

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

I now propose a idea.

Posted by Godfrey Sorita on 27-Feb-2015 08:59
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.
This thread is closed