-
Notifications
You must be signed in to change notification settings - Fork 0
File Management
OneLine provides an interface and a model to what should be important for file management.
OneLine Tool out of the box provides a handler and an implementation to manage file/s.
On your database design over an entity that needs to hold a file/s you just need to add a blob/binary column and OneLine Tool will manage it for you.
The current implementation saves a reference of the file in binary format and the file in the defined storage provider.
The current implementation by default allows any file of 8 mb of any type restricted for only one file but the current implementation supports multi file uploading with a single setting in the current implementation inside the FormFileRulesValidator.
No need to add extra child table to attach files multiple files for an entity.
OneLine Tool takes cares of everything when managing files.
Even if you replace the file with a new one the implementation takes care of deleting the old file and uploading the new one.
Also when deleting the record which manage a file/s, it takes care of the delete operation without requiring anything to do from your side.
You can also setup your storage provider as you require.
Piece of cake and a lot of time and headache saved for you!