Loading...
October 23, 2013#

Front-end multi-upload field for SilverStripe 3

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.

Features:

  • 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.

2 Comments

  1. Hey Gene, have you get it worked in the frontend yet?

  2. Hi Phillip,

    I haven’t had time to add the auto upload feature. I do plan to add it but not for a few months. You could try implementing it yourself if you like, http://blueimp.github.io/jQuery-File-Upload/ was the jquery plugin I was going to use.

Leave a Comment