Welcome Guest, Not a member yet? Register   Sign In
Upload any file - what's a framework really for?
#11

[eluser]thurting[/eluser]
[quote author="Digitalman65" date="1219103313"][quote author="thurting" date="1219050619"]Damn dude. If you 'cringe at the thought of modifying the CI code to suite [your] needs or writing [your] own Upload class', then maybe you should rethink your foray into web development. CI isn't meant to be an out of the box solution to build any website you can imagine. It is meant to be a base for you to work off of. If you want to extend the core, fire up your text editor and write some code. If you run into problems, come here for help. But don't get all whiny because it doesn't fit your needs exactly. After all, you downloaded it for FREE.[/quote]

I've been a Java web developer for, well, forever. I've been developing PHP for almost as long. My cringing is at modifying a piece of code that gets updated. If I modify it, and then upgrade it, my changes go bye bye. Not a good solution in my book. I'd rather effect change through the proper channels, the authors of the framework.

The point I was making was that the Upload class is provided by the framework but imposes certain restrictions the prevents me from using it, rendering it useless to me for my specific task. I doubt the authors intended that. If so, then that's bad, IMHO. I would have never have authored the Upload class in that way. My point was to give the user (us developers) the choice/power/what-have-you and don't impose restrictions. Make the Upload class useful for all, not just the majority. Seeing other posts in the forum, I'm not alone. Others, in this albeit small group, needs the functionality I've mentioned.

I enjoy free. I hope to give back in some way to help keep it free.[/quote]

Software should be written for the majority NOT for all. Creating for all is completely inefficient because someone will always have a specialized need. What you have to realize is that CI imposes NO restrictions on its users. If you don't like a piece of it, you DON"T have to use it. It is just PHP, so you can extend it, rewrite it, or just ignore it. You want choice, you have it. I think you may have just been lazy/frustrated when you wrote that post. In any case, welcome.
#12

[eluser]llbbl[/eluser]
copy the upload class to your own library folder and rename it like digiman_upload.. of course open file and rename the class corresponding to filename you choose

$this->load->library('digiman_upload');

then you can edit it to make your coffee and wax your chest or whatever you want it to do.




Theme © iAndrew 2016 - Forum software by © MyBB