File management solution for Masonite
Project description
Masonite Permission
Introduction
A simple yet powerful file management solution for your masonite application.
Features
- Manager Server Files (Currently only supports local files)
- Upload Files
- Preview Files
- Rename Files/Folders
- Delete Files
- Download Files
- Move Files
- Protect Routes
- FileManager FormField
- Image Editing
- Third Party Driver Support (S3, DigitalOcean Space, etc)
Installation
pip install masonite-filemanager
Configuration
Add FileManagerProvider to your project in config/providers.py
:
# config/providers.py
# ...
from filemanager.providers import FileManagerProvider
# ...
PROVIDERS = [
# ...
# Third Party Providers
FileManagerProvider,
# ...
]
Then you can publish the package resources (if needed) by doing:
python craft package:publish filemanager
Finally add following to STATICFILES
section in config/filesystem.py
:
# config/filesystem.py
STATICFILES = {
# ...
# FileManager resources
'resources/vendor/filemanager': 'filemanager-assets/',
"storage/framework/filesystem/filemanager": "filemanager-uploads/",
}
Usage
Once finishing configurations, you can access the file manager by using the following route:
http://localhost:8000/filemanager
Contributing
Please read the Contributing Documentation here.
License
masonite-filemanager is open-sourced software licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for masonite-permission-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d723e034637e70d8ba484a89123fba00be9ab135c37b0551cb1789d9e6f5ed05 |
|
MD5 | c0f2bd08587b8b0943f5dd09bb722c4f |
|
BLAKE2b-256 | 49646d6f671b12f5429d9a2275023ddd5258cd54b9d570f65f3028676d730863 |
Close
Hashes for masonite_permission-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e921aa672567d377eb39c46fd17d98f128be9a9b29de3b27054b846c71f9410 |
|
MD5 | 482dec7ceb0f351d105fc522aa22710c |
|
BLAKE2b-256 | d48d95f1d25cc07eee8528d69fa6a43178967292e485090bff1e84eca1899cef |