minor fix

This commit is contained in:
daniel31x13
2024-01-17 10:25:24 -05:00
parent 23f4142414
commit f35bc7b9fd
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
? await validateUrlSize(link.url)
: undefined;
if (validatedUrl === null) throw "File is too large to be stored.";
if (validatedUrl === null)
throw "Something went wrong while retrieving the file size.";
const contentType = validatedUrl?.get("content-type");
let linkType = "url";