biigle / user-storage
BIIGLE module to allow file upload and storage for users
Installs: 3 221
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 11
Requires
- guzzlehttp/psr7: ^2.6
- dev-master
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-devIssue35
- dev-dependabot/npm_and_yarn/npm_and_yarn-2aa7f2e8a6
This package is auto-updated.
Last update: 2024-11-23 09:07:13 UTC
README
This is the BIIGLE module to allow file upload and storage for users.
Installation
- 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.
Developing
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 and bug reports
Contributions to BIIGLE are always welcome. Check out the contribution guide to get started.