Part of the EllisLab Network
   
 
Minimum dimesions in the File Uploading Class/Library
Posted: 04 July 2009 12:11 PM   [ Ignore ]  
Summer Student
Total Posts:  2
Joined  07-04-2009

Having

min_width
and
min_height
as well as the existing
max_width
and
max_height

would be very useful.
I tried implementing it myself by duplicating every reference to max_width and max_height (variable declarations and functions etc.) i could find (Dreamweaver search) in Upload.php and altering them to min_* (I also made a new error message in upload_lang.php) but I kept getting the following error:

A PHP Error was encountered

Severity
: Notice

Message
: Undefined property: CI_Upload::$min_width

Filename
: libraries/Upload.php

Line Number
: 666

(and another for min_height 5 lines after) in Upload.php this is the location of the function that compares the actual dimensions against the maximum and as far as i could tell the duplicate function I had created was valid. $min_width was also declared at the top of the class. Acording to Dreamweaver there was no mention of max_height or max_width in any other file.  confused

Profile
 
 
Posted: 30 September 2009 04:20 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  17
Joined  07-20-2009

i agree i miss these variables too

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120527 Total Logged-in Users: 34
Total Topics: 126592 Total Anonymous Users: 6
Total Replies: 665524 Total Guests: 385
Total Posts: 792116    
Members ( View Memberlist )
Newest Members:  andrewknightKittx77AmityBetbulJahhnvicrussell@gmail.comdefrtymusclesseownikaiyu