Simple pin/password-protected, self hosted image uploader with file-lifetime management.
- PHP 5.6+
- Apache (for .htaccess)
- Unzip the release archive files somewhere within on your web server.
- Copy
inc/conf.inc.sample.php
toinc/conf.inc.php
. - Open
inc/conf.inc.php
- Add a sha256 hashed password to the $pins array (use
scripts/generate_password.php
). If you don't want to use password protection, setREQUIRE_PIN
tofalse
and leave the $pins-array empty. - If wanted, configure IMG_DIR to a another directory. I recommend to move this directory outside of the web accessible root, for security purposes.
- Add a sha256 hashed password to the $pins array (use
- Give the web server write permissions to IMG_DIR.
- Enjoy image uploading
simple-image-share comes with functionality to regularly clean up your data
directory. Since images can be uploaded with a lifetime of "a day", "a year"
"a month" or "unlimited" some housekeeper has to clean the old cruft, and that's
what inc/cron.php
is for.
To use it, you have to configure a secret in 'inc/conf.inc.php' and create a cron-
job for https://<path to simple-image-share>/inc/cron.php?secret=<yoursecret>
.