We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f32e3 commit 037766eCopy full SHA for 037766e
index.ts
@@ -418,7 +418,9 @@ export default class UploadPlugin extends AdminForthPlugin {
418
path: `/plugin/${this.pluginInstanceId}/get-file-download-url`,
419
handler: async ({ body, adminUser }) => {
420
const { filePath } = body;
421
-
+ if (!filePath) {
422
+ return { error: 'Missing filePath' };
423
+ }
424
const url = await this.options.storageAdapter.getDownloadUrl(filePath, 1800);
425
426
return {
0 commit comments