Skip to content

Commit

Permalink
API UploadField functions on new records
Browse files Browse the repository at this point in the history
Fixed regression from 1e5d404 (UploadField::canPreviewFolder).
Merged in pull request #2009 - (6018bdd).
Merged pull request #1259 (34bfc86).
  • Loading branch information
tractorcow committed May 27, 2013
1 parent 2b9a44e commit 7f057ce
Show file tree
Hide file tree
Showing 20 changed files with 1,774 additions and 1,006 deletions.
7 changes: 2 additions & 5 deletions _config/uploadfield.yml
Expand Up @@ -6,12 +6,9 @@ UploadField:
allowedMaxFileNumber:
canUpload: true
canAttachExisting: 'CMS_ACCESS_AssetAdmin'
replaceExistingFile: false
canPreviewFolder: true
previewMaxWidth: 80
previewMaxHeight: 60
uploadTemplateName: 'ss-uploadfield-uploadtemplate'
downloadTemplateName: 'ss-uploadfield-downloadtemplate'
fileEditFields:
fileEditActions:
fileEditValidator:
overwriteWarning: true # Warning before overwriting existing file (only relevant when Upload: replaceFile is true)
overwriteWarning: true # Warning before overwriting existing file (only relevant when Upload: replaceFile is true)
10 changes: 5 additions & 5 deletions css/GridField.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions css/UploadField.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/en/changelogs/3.1.0.md
Expand Up @@ -415,6 +415,7 @@ you can enable those warnings and future-proof your code already.
* Removed `SQLMap::map()`: Use DataList::("Member")->map()
* Removed `SQLMap::mapInGroups()`: Use Member::map_in_groups()
* Removed `PasswordEncryptor::register()/unregister()`: Use config system instead
* `UploadField::setConfig()` and `UploadField::getConfig()` are no longer public: Use set{Property} or get{Property} to configure an `UploadField` instance
* Methods on DataList and ArrayList that used to both modify the existing list & return a new version now just return a new version. Make sure you change statements like `$list->filter(...)` to $`list = $list->filter(...)` for these methods:
- `ArrayList#reverse`
- `ArrayList#sort`
Expand Down

0 comments on commit 7f057ce

Please sign in to comment.