Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (files.file.size) {
- const newFilePath = path.join('/uploads/', tempFilePath)
- } else {
- const newFilePath = ''
- };
- // shorthand version
- const newFilePath = files.file.size ? path.join('/uploads/', tempFilePath) : ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement