2017 © Pedro Peláez
 

silverstripe-module selectupload

Enables files to be uploaded into a user-designated folder

image

silverstripe/selectupload

Enables files to be uploaded into a user-designated folder

  • Monday, June 18, 2018
  • by tractorcow
  • Repository
  • 14 Watchers
  • 25 Stars
  • 46,855 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 10 Versions
  • 6 % Grown

The README.md

Select Upload Field

Build Status SilverStripe supported module, (*1)

Introduction

This module introduces an extended version of the UploadField, called SelectUploadField. This allows users to select the folder that they wish to upload newly added files to, rather than forcing users to upload to a pre-configured folder., (*2)

The folder selection will be remembered for that user, so that if they are uploading files across multiple pages or data-objects they will only need to change this value if they wish to change the destination folder., (*3)

Installation

If you have composer you can install using composer require silverstripe/selectupload:*, (*4)

Otherwise, download the project as a zip archive and extract into the selectupload folder., (*5)

Usage

In your project you can use the SelectUploadField field as a substitute for UploadField., (*6)

$field = SelectUploadField::create('MyImage', 'My Image')
    ->setFoldername('Parent/Subfolder') // set a good default folder
    ->setCanSelectFolder('ADMIN') // So that only important people can select any folder

If you wish to replace ALL instances with this field type, you can simply use dependency injection to specify a custom class, (*7)

In your mysite/_config/config.yml, (*8)

---
Name: mysettings
---
SilverStripe\Core\Injector\Injector:
  SilverStripe\AssetAdmin\Forms\UploadField: 
    class: SilverStripe\SelectUpload\SelectUploadField

This field appears as below:, (*9)

Sample SelectUploadField, (*10)

The Versions

18/06 2018

dev-master

9999999-dev

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe cwp

25/08 2017

1.0.x-dev

1.0.9999999.9999999-dev

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe cwp

25/08 2017

1.0.6

1.0.6.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe cwp

25/08 2017

1.0.7

1.0.7.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe cwp

09/08 2016

1.0.5

1.0.5.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe cwp

04/02 2016

1.0.4

1.0.4.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe cwp

19/11 2015

1.0.3

1.0.3.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe cwp

06/01 2015

1.0.2

1.0.2.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

file upload silverstripe

22/07 2014

1.0.1

1.0.1.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

file upload silverstripe

17/07 2014

1.0.0

1.0.0.0

Enables files to be uploaded into a user-designated folder

  Sources   Download

BSD-3-Clause

The Requires

 

file upload silverstripe