This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to FTP files using Web Service  RSS feed

 
Mike Boota
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to WS part, I want to FTP files to a remote server using web service. Whenever a file is created a web service will be called to transfer the file to some remote location. Is it possible to transfer the files using FTP in the web service.

Or is it possible to pole a directory and whenever a new file is created web service automatically picks up the file and FTP it to a remote server. Any help is appreciated specially link to any documentation or samples.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not possible - WS and FTP don't mix. If you want to FTP a file, use FTP; no need to complicate it using WS.

If the problem is to automatically start the transfer if the file is created, run a cron job that scans the directory periodically and handles a file once it's there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!