Skip to content

Commit

Permalink
Merge pull request #44 from causecode/containername-update-after-cdn-…
Browse files Browse the repository at this point in the history
…migration

Container name update issue fixes when migration from one CDN to another
  • Loading branch information
Shivam Pandey authored Mar 31, 2019
2 parents 4795b9f + 072e37b commit 519b436
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File-Uploader Plugin (Latest 4.0.2)
# File-Uploader Plugin (Latest 4.0.3)

[![Maintainability](https://api.codeclimate.com/v1/badges/13bfee73c29ecd2ea4b2/maintainability)](https://codeclimate.com/github/causecode/grails-file-uploader/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/13bfee73c29ecd2ea4b2/test_coverage)](https://codeclimate.com/github/causecode/grails-file-uploader/test_coverage)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
}
}

version "4.0.2"
version "4.0.3"
group "com.causecode.plugins"

apply plugin: "idea"
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

## Version 4.0.3 [28-03-2019]

### Fixed
- Update container name when file moved to another CDN.

## Version 4.0.2 [27-03-2019]

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ class FileUploaderService {
uFileHistory.status = MoveStatus.SUCCESS
uFile.name = fileName
uFile.path = savedUrlPath
uFile.containerName = uFile.containerFromConfig
uFile.provider = toCDNProvider
uFile.expiresOn = new Date(new Date().time + expirationPeriod * 1000)
uFile.type = makePublic ? UFileType.CDN_PUBLIC : UFileType.CDN_PRIVATE
Expand Down

0 comments on commit 519b436

Please sign in to comment.