Hi Community.
I am putting together a workbench to upload specific (Plan) files to a SFTP and while I was there I thought I'd add in to download a list of existing files, match them against the options to upload and add/remove only what is necessary.
So in summary:
- Get list of plans on network drive (file and path directory reader). Success!
- Filter plan name against spatial file (determines if plan is needed or not). Success!
- Download list of plans currently on the SFTP (FTP caller with SSH-Authentication). Success!
- Filter needed plan names against plan names already existing on SFTP. Success!
- Delete plan files from SFTP no longer needed (FTP caller with SSH-Authentication). Success!
- Upload plan files to SFTP that are needed (FTP caller with SSH-Authentication). No success yet.
I'm happy to upload the template file I'm just not sure that will assist without the keys needed to access the SFTP (can't give these out).
The creator/attribute manager are there for testing some of the different ideas I have had:
- writing a pdf file from a local path
- writing a pdf file from a network path
- writing a pdf file from a UNC path
What is stumping me is that the delete and upload from/to the SFTP are very similar but not working.
The delete looks like this:
The upload looks like this:
However when I look on the SFTP the deleted files have been removed but the uploaded files have not appeared.
Some of the resolutions I have tried for the upload:
- Changing the URL path to the folder above the plans folder
- Removing the trailing slash from the URL
- Setting the file to upload path manually (including selecting from windows explorer)
- Changing the transfer mode (we have both pdf's and tif's to upload and I thought this might change things)
- Switching the connection mode between active and passive
Is there an extra step when uploading to a SFTP that I am missing or has anyone had similar issues?
Thanks FMErs