Skip to main content
Oct 10, 2019 4:56 AM UTC
Question

File transfer from one machine to another

Hi,

I have three text files in a folder on Machine1 which i want to read from the Thingworx Server and transfer them to Machine2 having an empty folder.

Can someone suggest the solution ?

4 replies

Oct 10, 2019 7:48 AM UTC

The files transfered between TWX servers should stay in FileRepository folders. 

 

By using FileRepository Thing Template, you can find some APIs that will help you transfer files to another system. i.e. GetFileListingWithLinks service.   Click the link the Client side can download the file.

 

And by using RemoteThingWithFileTransfer Thing Template, you can find services like MoveFile

 

Oct 10, 2019 8:19 AM UTC

Here in my query, Machine1 & Machine2 don't have Thingworx installed.

Also, I couldn't download FTP extension from marketplace. I want to enable the Machine1 folder with FTP and fetch the files with Thingworx and then transfer the same files to Machine2 , which is again enabled with FTP.

 

If not FTP, do you suggest any work around?

Oct 10, 2019 8:30 AM UTC

In mashup there is a fileUpload widget, it can receive your file from Machine1 and store in the Repository folder in TWX server if you open the mashup in Browser in Machine1.

 

Open the mashup in Machine2, use the DownloadFilewithLinks service I mentioned previously, it can get the File from TWX server (Previously uploaded from M1).

Oct 13, 2019 3:53 PM UTC

Hello,

 

Alternatives to FTP are numerous. Depending on your operating system, consider using NFS, scp (SSH cp), rsync, rclone, Samba / Windows file shares, etc.

 

/ Constantine