mirror of https://github.com/usbharu/Hideout.git
Merge remote-tracking branch 'origin/feature/remote-media-file-size-limit' into feature/remote-media-file-size-limit
This commit is contained in:
commit
995d40f0a4
|
@ -30,7 +30,9 @@ class RemoteMediaDownloadServiceImpl(
|
|||
|
||||
val contentLength = createTempFile.toFile().length()
|
||||
if (contentLength >= mediaConfig.remoteMediaFileSizeLimit) {
|
||||
throw RemoteMediaFileSizeException("File size is too large. $contentLength >= ${mediaConfig.remoteMediaFileSizeLimit}")
|
||||
throw RemoteMediaFileSizeException(
|
||||
"File size is too large. $contentLength >= ${mediaConfig.remoteMediaFileSizeLimit}"
|
||||
)
|
||||
}
|
||||
|
||||
logger.info("SUCCESS Download remote file. url: {}", url)
|
||||
|
|
Loading…
Reference in New Issue