Skip to content

A simple yet powerful file management solution for your masonite application.

License

Notifications You must be signed in to change notification settings

py-package/masonite-filemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

88641f1 · Feb 23, 2022

History

16 Commits
Feb 22, 2022
Feb 23, 2022
Feb 23, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 23, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 22, 2022
Feb 23, 2022
Feb 22, 2022

Repository files navigation

filemanager

GitHub Workflow Status PyPI Python Version GitHub release (latest by date including pre-releases) License star Code style: black

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.

Maintainers

License

masonite-filemanager is open-sourced software licensed under the MIT license.