mirror of https://github.com/usbharu/Hideout.git
Update src/main/kotlin/dev/usbharu/hideout/core/service/media/RemoteMediaDownloadServiceImpl.kt
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
5db462d9d8
commit
c5aee7b35d
|
@ -30,7 +30,9 @@ class RemoteMediaDownloadServiceImpl(
|
||||||
|
|
||||||
val contentLength = createTempFile.toFile().length()
|
val contentLength = createTempFile.toFile().length()
|
||||||
if (contentLength >= mediaConfig.remoteMediaFileSizeLimit) {
|
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)
|
logger.info("SUCCESS Download remote file. url: {}", url)
|
||||||
|
|
Loading…
Reference in New Issue