You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use this function, assume we open a tutorial and create test.txt in the home folder /home/freecc. For any sandbox, a session id and a instance id will be generated automatically. The following GET request will get /home/freecc/test.txt
curl --request GET lab.freecompilercamp.org:5010/sessions/bsk4ctgq4uig0s44264g/instances/bsk4ctgq_bsk4ctoq4uig0s442650/file?path=%2Fhome%2Ffreecc%2Ftest.txt
The URL pattern is <pwc_url>/sessions/<session_id>/instances/<instance_id>/file?path=<encoded file path>.
The parameter at the end is to indicate the demanding file. The file path after url encoding is the value of the key path.
The returned file content is encoded to Base64 format.
To be safe, the file should be passed to
/tmp
and never be executed.Then the file can be downloaded from frontend by user.
The text was updated successfully, but these errors were encountered: