Skip to content

FTP_Storage Plugin

Daniel Neto edited this page Jul 5, 2021 · 3 revisions

A flexible way to store your files in a different server location, using FTP or SSL-FTP to transmit the files

This plugin is based on this project https://github.com/Nicolab/php-ftp-client

Requiriments

In addition to the FTP server, you will also need a web server on the same FTP server, this web server will be used as the endpoint.

The files will be stored in a separate server and will be transferred using the FTP protocol. But when a video is required to play we will play the video directly from your FTP server, so your client will need to access the file directly from the endpoint

Parameters

  1. hostname: the hostname used to connect to your FTP server
  2. username: the username used to connect to your FTP server
  3. password: the password used to connect to your FTP server
  4. port: the port used to connect to your FTP server
  5. path: This is where the FTP script should save the files after login
  6. SSL: check if your FTP requires SSL
  7. passiveMode: check if your FTP requires the passive mode
  8. endpoint: Your endpoint MUST be the FTP URL, the HTTP URL you use to access your files on the FTP server

More about endpoint

For example, if you have an FTP server and a webserver hosted on the IP 192.168.0.2, and you upload your files to the path: ./myUploadedFiles/, your endpoint will be http://192.168.0.2/myUploadedFiles/

Important

If your Streamer is hosted using SSL (HTTPS) your FTP endpoint MUST also use SSL

Clone this wiki locally