-
Notifications
You must be signed in to change notification settings - Fork 2k
Bad example of file type valiator for multer.fileFilter #1270
Comments
@incNick would you like to submit a PR to propose a fix and explain it? |
aHa, in fact I'm first time use github and also one new player of Node & Express so I don't know how to submit a PR. I'm sorry of can't provide you more help :( |
@incNick, that's no problemo! This is a great change to get you started with Open Source contributions, Git and GitHub! :-) Up for a challenge? I'll spare some 5 minutes to write quick instructions. Probably easier if I write it for an app, since it's easier to get started with than command line (but lemme know if you'd like to try command line instead):
Volá! :-) If you need to do changes, just commit and push to the same branch and they'll appear at the Pull Request here. This was with OSX, should be quite similar with Windows or Linux clients. Feel free to ask any questions here or just add me on any chat app. I'm always eager to get new people into open source community. |
If only I could reproduce the problem. The filetype-validator seems to work here, anyone else seeing the issue? |
I was able to reproduce the issue, see updates in pr #1272 |
@simison thanks for the lesson...am a very newbie myself. Wish I had seen it before I attempted my first PR for the generator. |
@simison kudos on that lovely invite for contributing on GitHub! |
Source in file modules/users/server/controllers/users/users.profile.server.controller.js, some content like:
I just create one other controller use for save upload files, and reference above code, just found the fileFilter always not work. Correct way should be:
The text was updated successfully, but these errors were encountered: