Open chinnichaitanya opened 9 years ago
I don't think there is a need of component for file uploading. As we have large repository of plugins for file uploading on bower/npm.. Also its user dependent, so each one can have their own taste.
There would need to be a lot of options, like GridFS, filesystem, SQL, maybe even cloud..
I think GridFS is promising. For storing in filesystem, we need to take care some security measures like first storing it in a temp
folder and then storing it in actual folder.
@chinnichaitanya do you have a proposal or PR that you would like to offer?
In my personal opinion this seems a little bit out of the scope of the generator, also as @vicky-gonsalves mentioned there are so many plugins/methods that could be used to implement it; I don't feel that it would be easy to satisfy and support a majority of the users.
Another idea might be to include a file uploading component via a sub-generator. @chinnichaitanya is that something you have expirence with by chance?
@kingcody I've got some ideas for how it would be implemented. I'll PM you.
@kingcody As of now, I don't have any PR to offer. What I meant is having multiple options i.e, asking if the user wants uploading through GridFS or filesystem similar to asking whether we want authentication using google or facebook or twitter etc.
And I didn't understand what does a sub-generator means. Can you explain me what it is ?
@Awk34 Thanks for adding it to the 2.3.0 milestone.
File Uploading is used in almost every app. So why not have a component for that ?