An improved plugin to directly download files off the internet onto copyparty.
- Download
wget.jsamdwget.py - Put wget.js somewhere that can be accessed from the copyparty webserver. (any public volume)
- Add
--js-browser <mapped path to wget.js> --xm I,<absolute path to wget.py>or add this to your config file:
[global]
js-browser: <mapped path to wget.js>
xm: I,<absolute path to wget.py>Note
The "mapped path" is the path on the webserver to wget.js, so if you have wget.js stored in the /party folder in your filesystem and /party is mapped to / in copyparty, /wget.js is the mapped path.
- Restart copyparty
- Done! 🎉
If you are running copyparty inside a Docker container, the standard wget package might not be installed by default. You can install it by running this command on your host:
docker exec -u 0 -it <your_container_name> apk add wget- nice UI
- multiple downloads at the same time
- progress indicator
- hidden from users that don't have write permissions
- provides wget error logs when download fails (can be disabled)
- provide error logs when wget crashes
- upgrade to an up2k-like progress bar
copyparty-wget automatically shows logs on the web UI when a file download fails. This is to identify potential problems without having to read the server logs. However, you might not want users to see those because they might expose filesystem paths or other server information. To disable those logs, simply open wget.py and change DISABLE_LOGS at the top of the file from False to True like this:
DISABLE_LOGS = True # Set to true if you don't want logs to be sent when wget failsNote: You can still access the wget logs by reading the server logs, this only prevents sending potentially sensitive information to users who you can't really trust)
