A couple of Silverstripe projects I have been working on recently have required a the ability to upload several files at once from the font-end. The built in upload field in Silverstripe is an awesome tool for the backend, however isn’t so versatile for use in the front-end.
Introducing the SS Multi-upload – https://github.com/senorgeno/ss-multiupload
The module extends off the upload field so many of the features from the popular built in field are available in the multi-upload field. The field currently uploads on submission of the form as opposed to the upload field which by default uses ajax magic to push files up. I will look to add the ability to add auto uploading in a future release.
- Works with has_one, has_many and many_many relations and uses auto relation detecting when saving files to a dataobject
- Can set max number of allowed uploads
- Can set max total allowable upload
This is my first module i’ve made publically available. I hope someone gets some use out of it. If you have any questions or issues, please post. I’ll look to submit it to Packagist to work in with composer at some point.