Work in progress file uploader using Crystal. Ready to use but unknown bugs may appear.
config | ||
public | ||
spec | ||
src | ||
.gitignore | ||
LICENSE | ||
README.md | ||
shard.lock | ||
shard.yml |
file-uploader
Simple file uploader made on Crystal.
I'm making this to replace my current File uploader hosted on https://ayaya.beauty which uses https://github.com/nokonoko/uguu Already replaced lol.
Features
- Temporary file file uploader like Uguu
- File deletion link (not available in frontend for now)
- Chatterino and ShareX support
- Unix socket support if you don't want to deal with all the TCP overhead
- Low memory usage: Between 6MB at idle and 25MB if a file is being uploaded or retrieved. I will depend of your traffic.
TODO
Add file size limitADDED- Fix error when accessing
http://127.0.0.1:8080
with an empty DB. - Better frontend...
Disable file deletion ifDONEdelete_files_after_check_seconds
ordelete_files_after
is set to0
Disable delete key ifDONE (But I think there is a better way to do it)delete_key_length
is0
Exit ifDONEfilename_length
is0
Disable file limit ifDONEsize_limit
is0
Prevent files from being overwritten in the event of a name collisionDONE- Dockerfile and Docker image (Crystal doesn't has dependency hell like other languages so is not really necessary to do, but useful for people that want instant deploy)