You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data: {},//mandatory declare the data(can be empty), otherwise it will give you an undefined error. This parameters will be used to relate the file with a collection.
85
+
files: {
86
+
path: fullFilePath,
87
+
name: `configs/${fileName}`,
88
+
type: 'application/zip',// mime type of the file
89
+
size: stats.size,
90
+
},
91
+
});
92
+
fs.unlinkSync(fullFilePath);
93
+
return{url: result[0].url,message: 'Success'};
94
+
},
95
+
68
96
/**
69
97
* Read from a config file.
70
98
*
@@ -191,7 +219,7 @@ module.exports = () => ({
191
219
* @param {object} onSuccess - Success callback to run on each single successfull import.
0 commit comments