cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Image Width Upload Limit

Add a New Topic Reply to Post
Post

Irish - Guest

6:34 pm - June 20, 2008

Please replace the ??? with your data!


[desc]:
_ I am wondering if there is a way to limit the pixel width of uploaded images to cforms? I understand not everyone uses it to upload images, but in my case it is what i use it for, and for anyone esle who uses it this way, I would like to be able to limit the upload not only on file size, but on actual dimensions. Currently anyone can upload any 'width' file as long as the size is less than the set KB Upload Limit (which I have set).

Is there a way, or can anyone take a guess at how to set cforms to check for image dimensions when it looks to upload the file, and limit it if it is bigger than a specific size?

Any ideas would be great!

Irish

Oliver - Admin

6:50 pm - June 20, 2008

posts 3549

That's not possible. The content (text) or attributes (images: dimensions) of a file uploaded are not being considered. Your webserver doesn't care what the content is, and cforms doesn't parse the content before deciding whether or not to accept the submission.

Add a New Topic Reply to Post


Reply to Topic: Image Width Upload Limit
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 1 + 5        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)