Open incNick opened 8 years ago
@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. Bur after read the source of multer, looks like the filter option only can assign when construct instance, so run multerInstance.fileFilter = something nothing change.
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.
@simison sure, I think you are right, go further then need learn more :) I just public my branch fix-multer-filetype-validator there, but I'm not sure you can see it. Hope you have one very nice weekend.
@incNick I have created the PR for you #1272
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! @trendzetter let's talk on your open PR for status
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: