streamby-core 0.25.3 → 0.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -107,7 +107,7 @@ function storageRouter(config) {
|
|
|
107
107
|
if (!adapter.getPresignedUploadUrl) {
|
|
108
108
|
return res.status(501).json({ message: 'Storage adapter does not support presigned uploads' });
|
|
109
109
|
}
|
|
110
|
-
const key =
|
|
110
|
+
const key = `${projectId}/${category}/${sanitizeFilename(fileName)}`;
|
|
111
111
|
const url = await adapter.getPresignedUploadUrl(key, contentType);
|
|
112
112
|
res.json({ url });
|
|
113
113
|
}
|