5 ms·
Now at its core, handling file uploads is very simple and straightforward affair I understand the concerns the author is raising and having a single responsibi
by websymphony 14y ago
Now at its core, handling file uploads is very simple and straightforward affair
I understand the concerns the author is raising and having a single responsibility for a library is definitely ideal. But as far as I have experienced, file uploads are never as trivial as author is pointing them out to be.
Most of the times you need some kind of post processing for the files, sometimes you need multiple file uploads, sometimes you want to do it asynchronously. It just never ends up trivial.
- gnufied 14y agoThats true, but often times a complicated library that makes these choices for you gets in your way, rather than helping the case.
- telent 14y agoWhich is exactly why I'd rather use a library that doesn't make the choice of Rails and ActiveRecord for me.
- gnufied 14y agoWell, I tend to take a pragmatic approach about this. The question is, how much you want to deviate from convention of underlying framework when developing? 90% of Web applications out there, can reliably stick to rails conventions and they will be well served by it. But from my personal experience - handling file uploads, processing them is often very different from app to app. What we need is composaple modules not a single monolithic library that does everything and there lies my gripe.