MCPcopy Create free account
hub / github.com/basir/node-react-ecommerce / key

Function key

backend/routes/uploadRoute.js:34–36  ·  view source on GitHub ↗
(req, file, cb)

Source from the content-addressed store, hash-verified

32 acl: 'public-read',
33 contentType: multerS3.AUTO_CONTENT_TYPE,
34 key(req, file, cb) {
35 cb(null, file.originalname);
36 },
37});
38const uploadS3 = multer({ storage: storageS3 });
39router.post('/s3', uploadS3.single('image'), (req, res) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected