Page 1 of 1

Upload via FTP

Posted: 2019-04-26 15:53
by krieshen
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.

Re: Upload via FTP

Posted: 2019-04-27 14:59
by sjohn
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.

Re: Upload via FTP

Posted: 2019-04-27 15:03
by sjohn
If it MUST be FTP then there is a script on GitHub : https://gist.github.com/gayanhewa/8f16e94842f48814ca28

Re: Upload via FTP

Posted: 2019-04-29 16:28
by krieshen
Hi,
Thank you.
FTP is a must indeed. How would I go about calling/integrating the above script (from GitHub) via the hooks file?

Re: Upload via FTP

Posted: 2019-05-01 10:57
by sjohn