mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): ⏪ Remove code that checks for missing filenames
This commit is contained in:
parent
c4910fb7f9
commit
c6c92e716f
|
|
@ -92,10 +92,6 @@ export default (app: Hono) =>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element instanceof File) {
|
if (element instanceof File) {
|
||||||
if (!element.name) {
|
|
||||||
return errorResponse("File must have a name", 422);
|
|
||||||
}
|
|
||||||
|
|
||||||
const media = await MediaBackend.fromBackendType(
|
const media = await MediaBackend.fromBackendType(
|
||||||
config.media.backend,
|
config.media.backend,
|
||||||
config,
|
config,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue