postiz-app/apps/backend
Emi Rexhepi ee8b26f383 fix(api): preserve file extension in upload-from-url endpoint
The upload-from-url endpoint passed an empty originalname to
uploadFile(), causing extname('') to return '' and files to be saved
without an extension. Derive the extension from the response
Content-Type header (or URL fallback) so files are stored with the
correct extension on disk.

Fixes gitroomhq/postiz-app#1147

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 15:40:55 +01:00
..
src fix(api): preserve file extension in upload-from-url endpoint 2026-02-06 15:40:55 +01:00
.gitignore feat: move to pnpm 2025-05-06 00:09:59 +07:00
nest-cli.json feat: move to pnpm 2025-05-06 00:09:59 +07:00
package.json feat: upgrade to node 22 2025-10-16 23:59:01 +07:00
tsconfig.build.json feat: move to pnpm 2025-05-06 00:09:59 +07:00
tsconfig.json feat: move to pnpm 2025-05-06 00:09:59 +07:00