@base44-preview/cli 0.0.38-pr.379.36c4006 → 0.0.38-pr.379.c10177b
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.
- package/dist/cli/index.js +6 -5
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -244631,7 +244631,10 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
244631
244631
|
}
|
|
244632
244632
|
});
|
|
244633
244633
|
const upload = import_multer.default({ storage, limits: { fileSize: MAX_FILE_SIZE } });
|
|
244634
|
-
const privateUpload = import_multer.default({
|
|
244634
|
+
const privateUpload = import_multer.default({
|
|
244635
|
+
storage: privateStorage,
|
|
244636
|
+
limits: { fileSize: MAX_FILE_SIZE }
|
|
244637
|
+
});
|
|
244635
244638
|
router.post("/Core/UploadFile", upload.single("file"), (req, res) => {
|
|
244636
244639
|
if (!req.file) {
|
|
244637
244640
|
res.status(400).json({ error: "No file uploaded" });
|
|
@@ -244646,9 +244649,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
244646
244649
|
return;
|
|
244647
244650
|
}
|
|
244648
244651
|
const file_uri = req.file.filename;
|
|
244649
|
-
|
|
244650
|
-
const signed_url = `${baseUrl}/media/private/${file_uri}?token=${token2}`;
|
|
244651
|
-
res.json({ file_uri, signed_url });
|
|
244652
|
+
res.json({ file_uri });
|
|
244652
244653
|
});
|
|
244653
244654
|
router.post("/Core/CreateFileSignedUrl", parseBody, (req, res) => {
|
|
244654
244655
|
const { file_uri } = req.body;
|
|
@@ -250888,4 +250889,4 @@ export {
|
|
|
250888
250889
|
CLIExitError
|
|
250889
250890
|
};
|
|
250890
250891
|
|
|
250891
|
-
//# debugId=
|
|
250892
|
+
//# debugId=53B967AC62FD12E864756E2164756E21
|