mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-02 16:34:30 +00:00
Merge remote-tracking branch 'origin/feature/remote-media-file-size-limit' into feature/remote-media-file-size-limit
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user