
- Mod gallery if images - Passowrd for access - Delete after first access OR define nb access (10, 20...) - Bug Fix : - BUG day / days - BUG my files no work in html page - BUG delete file, but already in storage - MyFiles Rewrite
2.4 KiB
2.4 KiB
file2link
PHP file sharing service free of rights (license Beerware) and free.
Demonstration : https://dl.zici.fr/
Requis
- HTTP serveur htaccess compatible (url rewriting enable)
- PHP 5.6 minimum
- PHP GD lib
- No nessecary database
Installation
Upload source content on you web server
Move config file :
mv config.yaml.exemple config.yaml
Change paramètre in config.yaml Make sure the consistency between:
- maxUploadPerFile is similar to PHP config upload_max_filesize and post_max_size
- maxUploadNb is similar to PHP config max_file_uploads
Make sure the "files" directory is writable
Crontab
By default the expired files this deletes with visits to the homepage. But you can delete them by cron job:
10 0 * * * /var/www/dl.zici.fr/cron.php
In config.yaml change
expireCron: web
to
expireCron: cli
Changelog
- futur
- drag and drop for upload
- limit by ip+cookies (sqlite) (limit abuse)
- crypt files
- Rendre l'upload progress plus jolie
- Ajout de fichier dans un répetoire déjà uploadé
- captcha / anti bot
- "signaler un fichier"
- 0.2
- Mod "gallery" if images
- Passowrd for access
- Delete after first access OR define nb access (10, 20...)
- Bug Fix :
- BUG "day' / "days"
- BUG "my files" no work in html page
- BUG delete file, but already in storage
- MyFiles Rewrite
- 0.1 (16/10/2019)
- Configure with YAML file
- Submit a file upload service with temporary link (Direct link, force download link, download multiple after zip)
- Limit in time
- Limit in number is possible
- Limit on type of file (mime) is possible
- Upload with progress bar in HTML5
- Upload multi file
- Multilingual (French / English)
- Images resize possible
- Find these files before uploader (local storage)
- Housekeeping in files expired by cron job or by web traffic on the page
- Personnalize content page with include header-page.php, header.php, footer-page.php, footer.php, start-home.php, end-home.php
Licence
Beerware : https://en.wikipedia.org/wiki/Beerware
Crédit
Mime type icone : https://github.com/colorswall/CSS-file-icons
Icone : https://fontawesome.com Creative Commons Attribution 4.0 International license
Author
David Mercereau david #arobase# mercereau #point# info