On Saturday 15 December 2001 4:27 pm, Charles Galpin wrote: > On Sat, 2001-12-15 at 09:51, Tomas Garcia Ferrari wrote: > > My goal as web developer is to indicate an interest on a directory and > > if a given user upload a picture to it, fire a program / script to > > downsizing, rename it, etc, etc. I would need to port this as well to Mac > > OS X, so it should be somehow open and portable... Now I'm trying to > > use Perl + ImageMagick + PerlMagick to do this and using cron to check > > every minute or so if new files were uploaded. But, as you said, polling > > is not the best way around... > > Why not support a file upload for the image and do your processing as it > arrives. No polling would be necessary and it would happen as fast as > possible.In addition, you can control what they upload by name/extension > and size. > > I know php supports it, and I imagine it's also possible with a perl > module.
Although I've not used it personally, I seem to remember seeing a demo using CGI.pm. I think almost all the work's done for you. If you're not already using CGI.pm have a look at it - I promise it will be worth it. > > hth > charles > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list