Created
August 31, 2018 16:51
-
-
Save funador/a8241c40da158fcbc2e37b484ee7b0bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post('/image-upload-single', (req, res) => { | |
const path = Object.values(Object.values(req.files)[0])[0].path | |
cloudinary.uploader.upload(path) | |
.then(image => res.json([image])) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment