merge: Check for truncated uploads in Mastodon API (!998)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/998 Approved-by: Marie <github@yuugi.dev> Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
commit
093f67ae55
2 changed files with 10 additions and 3 deletions
|
|
@ -54,7 +54,7 @@ export class ServerUtilityService {
|
|||
}
|
||||
} else { // Otherwise it's a file
|
||||
try {
|
||||
const filepath = await saveToTempFile(part.file);
|
||||
const [filepath] = await saveToTempFile(part.file);
|
||||
|
||||
const tmpUploads = (request.tmpUploads ??= []);
|
||||
tmpUploads.push(filepath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue