This is the BIIGLE module to allow file upload and storage for users.
- Run
composer require biigle/user-storage
. - Add
Biigle\Modules\UserStorage\UserStorageServiceProvider::class
to theproviders
array inconfig/app.php
. - Run
php artisan vendor:publish --tag=public
to refresh the public assets of the modules. Do this for every update of this module. - Set the environment variables
USER_STORAGE_STORAGE_DISK
andUSER_STORAGE_PENDING_DISK
to the names of the storage disk for user storage files and for pending storage requests, respectively. The same disk can be used for both. The content of the storage disks should be publicly accessible. The storage disk driver must support aroot
path (absolute or as a prefix). Example for a local disk:'user-storage' => [ 'driver' => 'local', 'root' => storage_path('app/public/user-storage'), 'url' => env('APP_URL').'/storage/user-storage', 'visibility' => 'public', ],
- In the php.ini, configure
post_max_size
andupload_max_filesize
to allow file uploads of your desired size. Maybe also configureupload_tmp_dir
to point to a local disk partition with enough space for all temporary upload files. In addition, configure the corresponding settings of the web server.
Take a look at the development guide of the core repository to get started with the development setup.
Want to develop a new module? Head over to the biigle/module template repository.
Contributions to BIIGLE are always welcome. Check out the contribution guide to get started.