Friday, August 10, 2007

 

Eiffel download cgi

Although most of my work the last few months has been PHP, there are still times were Eiffel is unavoidable. I needed an image upload tool that could give a user feedback on the upload progress. You can't write this in PHP as it doesn't allow you to work at the level you need to, to implement this.

There are some Perl scripts out there, but it introduces dependencies on libraries and who knows how well those scripts work when there are no invariants to give some peace of mind.

So with some minor modifications to eposix it is now possible to override certain EPX_MIME classes so one can save uploaded files to a given name instead of a temporary file. And now it is possible for a script to report on the size of the file that is being created.

Comments:
Many of the CPAN modules for Perl have comprehensive test suites. Perhaps that's not enough to assuage your mind in the absence of invariants, but Perl testing is fairly advanced.
 
chromatic, you're right, but Perl requires many libraries to be installed. In this case I just upload a single binary. Else I had to install and maintain Perl libraries on the test systems, the release candidates systems and the live site.
 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?