Upload via FTP

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
krieshen
Posts: 3
Joined: 2016-06-09 16:36

Upload via FTP

Post by krieshen » 2019-04-26 15:53

Hi,
I'm looking for sample code which enables a file to be uploaded via FTP.

So, for instance, if I have 'Upload_request.php' the upload button on the relevant screen would initiate a FTP connection and store the file on the FTP destination.
Preferably, a solution to be implemented in the hooks file.

Looking forward to any insights on this.

sjohn
Veteran Member
Posts: 86
Joined: 2018-05-23 09:32

Re: Upload via FTP

Post by sjohn » 2019-04-27 14:59

Is FTP a must?

If not, then I have a good script that can view files, and upload files. Can be password-protected. The uploading is browser-based.
It is all in a single php-file.

sjohn
Veteran Member
Posts: 86
Joined: 2018-05-23 09:32

Re: Upload via FTP

Post by sjohn » 2019-04-27 15:03

If it MUST be FTP then there is a script on GitHub : https://gist.github.com/gayanhewa/8f16e94842f48814ca28

krieshen
Posts: 3
Joined: 2016-06-09 16:36

Re: Upload via FTP

Post by krieshen » 2019-04-29 16:28

Hi,
Thank you.
FTP is a must indeed. How would I go about calling/integrating the above script (from GitHub) via the hooks file?

sjohn
Veteran Member
Posts: 86
Joined: 2018-05-23 09:32

Re: Upload via FTP

Post by sjohn » 2019-05-01 10:57


Post Reply