Good morning friends,
I am working (learning) on a file upload script.
And I want to limit the width and height of the images.
Could someone help me with a CGI-code-snipped that does the following:
(Lets say maxheight=250 maxwidth=300)
If the picture exceeds or maxheight or maxwidth
then send to a sub called "&errorsize"
This sub would print a message saying:
"Picture size to big, reduce it or upload another picture"
Regards and Greetings,
Sanuk
I am working (learning) on a file upload script.
And I want to limit the width and height of the images.
Could someone help me with a CGI-code-snipped that does the following:
(Lets say maxheight=250 maxwidth=300)
If the picture exceeds or maxheight or maxwidth
then send to a sub called "&errorsize"
This sub would print a message saying:
"Picture size to big, reduce it or upload another picture"
Regards and Greetings,
Sanuk