This is an implementation of FTP-SRV (https://github.com/QuorumDMS/ftp-srv) using a custom Virtual Filesystem based on the connector from the Disbox Project. It uses their APIs for access and read/write.
- File List
- Downloading Files (Files are streamed from web)
- Uploading Files, file is uploaded locally to the server then uploaded through the Discord Webhook.
-
- Update to stream directly rather than writing local file first
- Renaming Files (This needs more work, as it will currently let you rename directories, which is not supported by Disbox currently)
- Deleting Files
- Clone the repository
npm i
npm run start
- Run index.js
- Log in to the FTP server with credentials from your Discord Webhook for Disbox
- Username is the numerical section
- Password is the longer string
- Use your Disbox storage via FTP
The package is also updated and pushed to DockerHub https://hub.docker.com/r/tris203/disftp Please note, that the network will need to be in a Custom mode with a local IP address to use Active Mode. If your docker is in Bridge mode then you will need to use a Passive Connection in your FTP Client You will need to add a PASV_HOSTNAME variable to your docker, with the IP address of the container on your LAN
The majority of the disbox-file-manager.js code is taken directly from their repository, with just a few minor adjustments to handle Buffers over Blobs. All credit goes to DisBox for that implementation and code.
All contributations are welcome, please take a look at the list above or issues/discussions and get involved