TMPShareX
Basic anonymous and registered upload storage for temporary share file self hosted.
Server Requirement
- PHP 7.4.8 [Support PHP 8]
- Nginx 1.19.1 Or Apache 2.4.46
- MariaDB 10.4.13
Login Account (Default)
- Username: admin
- Password: 12345678
Limitation
- Upload become error if upload more than 2GB Due problem from library, For now i suggested you limit upload under 3 GB [Still Search Issue].
- Upload chunk use a lot cpu usage and sometime memory usage too.
- Merge chunk upload slow and triggering max execution time limit PHP [For now temporary patched by ini_set].
How to install
- Extract the ZIP file into a safe folder so it doesn't get mixed up.
- Copy & Paste the "basic_temp_filesharing" folder or copy the entire contents of the folder into the htdocs folder or www folder.
- Change the file ".env.example" to ".env" and change the settings to be as in the .env settings section (APP_KEY is done using artisan)
- First please run the following command " composer install " to install the required dependency libraries.
- Second, please run the command " php artisan key:generate " to generate APP_KEY automatically.
- Thirdly, please run the command " php artisan migrate " to migrate create a new database to mysql or mariaDB. (if there is a problem when migrating via the terminal or hosting does not support using the terminal, you can use SQL Dump)
- Fourth, please run the command " php artisan db:seed " to create a default application account (If you use SQL Dump, you don't need to use this command).
.env Setting File
APP_NAME=TMPShareX
APP_ENV=local
APP_KEY=
APP_DEBUG=false
APP_URL=http://localhost
#--------------------------------------------------------------------
# Setting Apps
#--------------------------------------------------------------------
# Allowing new user to create account on your apps
AUTH_ALLOW_REGISTER_SELF=true
# Storage limit must be filled in MB example:[20 GB = 20480 MB]
STORAGE_LIMIT_ACCOUNTS=20480
# Upload limit must be filled in MB example:[1 GB = 1024 MB] Due problem chunk merge from library limit it under 3GB
UPLOAD_LIMIT_ALLOW=1024
# Provide Upload Dir Custom example: ["upload_storage"] Caution!: Change this before use for upload
UPLOAD_NAME_FOLDER="upload_storage"
#--------------------------------------------------------------------
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=basic_temp_filesharing
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=database
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=database
SESSION_LIFETIME=120
Screenshot / Demo
Ingin mencoba aplikasi web ini silakan kunjungi
Change Log
10-21-2021
- First init files