Skip to content

Instantly share code, notes, and snippets.

@ma-9
Created November 4, 2019 07:49
Show Gist options
  • Save ma-9/2fad3b19addaba15faca46e458bdad78 to your computer and use it in GitHub Desktop.
Save ma-9/2fad3b19addaba15faca46e458bdad78 to your computer and use it in GitHub Desktop.
Get extension from req.file (Uploaded File)
file.mimetype.substr(6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment