Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Saving a file at companion side

ANSWERED

I transferred a tex file to companion from device using ".enqueueFile("test.txt")" and read it with "await inbox.pop()".

However, as far as I know, the file system is not available in companion system. 

So, is there any other way to save the transferred file from device at companion side?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Yes, there is a way. You can use fetch() to send it to a server. You can write your own server to accept the file. You can host this on the internet, or on your phone (which has the advantage of not requiring SSL). This is very difficult to do.

 

I think there's a web site that can accept fetch() requests and provide the content as file for download, but I don't know what it is.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
1 REPLY 1

Yes, there is a way. You can use fetch() to send it to a server. You can write your own server to accept the file. You can host this on the internet, or on your phone (which has the advantage of not requiring SSL). This is very difficult to do.

 

I think there's a web site that can accept fetch() requests and provide the content as file for download, but I don't know what it is.

Peter McLennan
Gondwana Software
Best Answer