Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [jaltuve] Links SQL 2.1.2 Bug?

Quote Reply
Re: [jaltuve] Links SQL 2.1.2 Bug? In reply to
Actually,

The best way to enforce file typing (because the browsers will display images regardless of extension), is to actually check the uploaded file for the graphics signature.

There are a few CPAN modules you can get that will do that, and simple plugin/hook will check the files.

My original logo program would read the file, and change the extension to match the data in the file, if necessary, then reject the file if the encoded type did not match the list of valid extensions. It did this not by a hook, but by moving the upload routines to a separate script ie: the link add/etc was left to Links to manage, but the image/upload fields were managed by the Upload.cgi

andy took this in a different direction, but it's on my list to tweak back in to the image upload routine library.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Links SQL 2.1.2 Bug? jaltuve 1750 Mar 20, 2003, 3:13 PM
Post Re: [jaltuve] Links SQL 2.1.2 Bug?
Payooo 1564 Apr 1, 2004, 5:56 PM
Thread Re: [jaltuve] Links SQL 2.1.2 Bug?
pugdog 1537 Apr 2, 2004, 4:23 AM
Post Re: [pugdog] Links SQL 2.1.2 Bug?
Payooo 1517 Apr 2, 2004, 1:10 PM