Skip to content

Commit 0c79a1b

Browse files
authored
Merge pull request #55 from robkooper/large-file-upload-url
use long for content length
2 parents d2c2f84 + 3f1ff0a commit 0c79a1b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1818
### Fixed
1919
- Escape colon characters on search values for search box and advanced search to allow those values in a search.
2020
- typesafe now only offers https access
21+
[#49](https://github.com/clowder-framework/clowder/issues/49)
22+
- if uploading files by url > 2147483647 it would fail
23+
[#54](https://github.com/clowder-framework/clowder/issues/54)
2124

2225
## 1.10.1 - 2020-07-16
2326

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)