A program that makes use of websockets to provide a real-time interface for simple LAN file transfer. Not intended for public facing servers, as this assumes that all users on your network are trusted individuals. Currently very limited.
- Transfer files between different computers on a home network without the need of a flash drive or some other hardware.
- Provide a transfer mechanism between a host machine and a guest machine in case you're too lazy to setup shared folders with a VM.
ztransfer
starts the server on whatever the.env
specifies or port 3000ztransfer (port)
starts the server on a specified port, ignoring.env
Files with the same name will replace each other.
{
"action": "ADD_FILE",
"filename": "test.txt",
"size": 86000
}
{
"action": "REMOVE_FILE",
"filename": "test.txt"
}
{
"action": "UPLOAD_PROGRESS",
"filename": "test.txt",
"progress": 5,
"total": 10
}
{
"action": "SEND_DELETE_REQUEST",
"filename": "test.txt"
}