1. Vladimir K.
  2. PowerBuilder
  3. Thursday, 23 June 2022 12:52 PM UTC

Hi All.

Researching how Copy multiple files from local folder to AWS S3 via appeon-pb (2019) script.

Looks like there is a few options 

Have anyone done it?

Thank you.

Sincerely

Vlad

Kevin Ridley Accepted Answer Pending Moderation
  1. Thursday, 23 June 2022 18:22 PM UTC
  2. PowerBuilder
  3. # 1

It looks like you should be able to use FTP, which would probably be the easiest way.  As Mike mentioned, you could possibly use REST also.  Roland has a nice FTP utility that works great with PB.  Links below:

https://aws.amazon.com/blogs/aws/new-aws-transfer-for-ftp-and-ftps-in-addition-to-existing-sftp/#:~:text=Available%20Today,for%20SFTP%20is%20currently%20available.

 

https://www.topwizprogramming.com/freecode_ftpclient.html

 

Comment
  1. Vladimir K.
  2. Friday, 24 June 2022 15:49 PM UTC
Thank You
  1. Helpful
  1. Roland Smith
  2. Friday, 24 June 2022 16:59 PM UTC
My FTP example is based on WinInet which does not support SFTP.
  1. Helpful 1
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Thursday, 23 June 2022 13:55 PM UTC
  2. PowerBuilder
  3. # 2

REST is your best option. 

I have not done this for AWS S3, but i have for Azure blob.  Same general idea.  Kevin Ridley also did a rest based upload to dropbox:   Using Dropbox REST API from PowerBuilder - YouTube       His presentation uses Oath, which is a bit harder than the S3 auth requirements.

 

 

  

The worst part is getting the list of all files from a directory.  You either have to do the visual listbox that is native in pb (this really needs improved), or use api calls to do it.

 

 

Comment
  1. Vladimir K.
  2. Thursday, 23 June 2022 14:43 PM UTC
Thank You
  1. Helpful
  1. Roland Smith
  2. Friday, 24 June 2022 17:00 PM UTC
Windows API functions to get a list of files in a directory can be found in my FTP example or in this one:

https://www.topwizprogramming.com/freecode_filesys.html
  1. Helpful 2
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Thursday, 23 June 2022 13:21 PM UTC
  2. PowerBuilder
  3. # 3

Will FTP do it better?   For filecopy, I think FTP is required, which is available in PB 2022.  

Happiness Always
BKR Sivaprakash

Comment
  1. Sivaprakash BKR
  2. Saturday, 25 June 2022 05:50 AM UTC
Yes Roland, FTP still not included in PB 2022 Beta.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Saturday, 25 June 2022 12:46 PM UTC
Hi Sivaprakash ... The FTP feature is not planned for GA. That would be a PB2022 Release 2/3 feature.
  1. Helpful
  1. Sivaprakash BKR
  2. Tuesday, 28 June 2022 06:13 AM UTC
Thanks Chris.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.