Skip to content

Commit 8d92353

Browse files
committed
use long for content length
1 parent a4a7fef commit 8d92353

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
### Fixed
1818
- typesafe now only offers https access
1919
[#49](https://github.com/clowder-framework/clowder/issues/49)
20+
- if uploading files by url > 2147483647 it would fail
21+
[#54](https://github.com/clowder-framework/clowder/issues/54)
2022

2123
## 1.10.1 - 2020-07-16
2224

app/util/FileUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ object FileUtils {
657657
// actually save the file
658658
val conn = url.openConnection()
659659

660-
ByteStorageService.save(conn.getInputStream, "uploads", conn.getContentLength) match {
660+
ByteStorageService.save(conn.getInputStream, "uploads", conn.getContentLengthLong) match {
661661
case Some((loader_id, loader, length)) => {
662662
files.get(file.id) match {
663663
case Some(f) => {

0 commit comments

Comments
 (0)