Skip to content

Commit 519b436

Browse files
author
Shivam Pandey
authored
Merge pull request #44 from causecode/containername-update-after-cdn-migration
Container name update issue fixes when migration from one CDN to another
2 parents 4795b9f + 072e37b commit 519b436

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# File-Uploader Plugin (Latest 4.0.2)
1+
# File-Uploader Plugin (Latest 4.0.3)
22

33
[![Maintainability](https://api.codeclimate.com/v1/badges/13bfee73c29ecd2ea4b2/maintainability)](https://codeclimate.com/github/causecode/grails-file-uploader/maintainability)
44
[![Test Coverage](https://api.codeclimate.com/v1/badges/13bfee73c29ecd2ea4b2/test_coverage)](https://codeclimate.com/github/causecode/grails-file-uploader/test_coverage)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ buildscript {
1515
}
1616
}
1717

18-
version "4.0.2"
18+
version "4.0.3"
1919
group "com.causecode.plugins"
2020

2121
apply plugin: "idea"

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog
22

3+
## Version 4.0.3 [28-03-2019]
4+
5+
### Fixed
6+
- Update container name when file moved to another CDN.
7+
38
## Version 4.0.2 [27-03-2019]
49

510
### Changed

grails-app/services/com/causecode/fileuploader/FileUploaderService.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ class FileUploaderService {
500500
uFileHistory.status = MoveStatus.SUCCESS
501501
uFile.name = fileName
502502
uFile.path = savedUrlPath
503+
uFile.containerName = uFile.containerFromConfig
503504
uFile.provider = toCDNProvider
504505
uFile.expiresOn = new Date(new Date().time + expirationPeriod * 1000)
505506
uFile.type = makePublic ? UFileType.CDN_PUBLIC : UFileType.CDN_PRIVATE

0 commit comments

Comments
 (0)