Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name of uploaded file #12

Closed
Abhimanyu310 opened this issue Nov 3, 2016 · 3 comments
Closed

Name of uploaded file #12

Abhimanyu310 opened this issue Nov 3, 2016 · 3 comments

Comments

@Abhimanyu310
Copy link

How do we get the name of the uploaded file? There is no documentation about it

@richardgirges
Copy link
Owner

richardgirges commented Nov 4, 2016

Hi @Abhimanyu310 I will start working on documentation for this - the filename should be accessible from the file object. For instance, if your input name was uploadImage and the file name you uploaded was foo.jpg you would access it from:

req.files.uploadImage.name

and it would equate to:

foo.jpg

@Abhimanyu310
Copy link
Author

@richardgirges Thanks, that worked.

@richardgirges
Copy link
Owner

Release v0.0.6 is now up. Better documentation in the README. Hope things are going well with this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants