Suchy Posted May 16, 2007 Share Posted May 16, 2007 I want to limit people of uploading pictures larger then 256 kbs to my site. Is it possible for php to recognize that 256 is 256 kbs and not 256 bytes, or is it necessary to write out the numbers in long ( 262144 ) ? Link to comment https://forums.phpfreaks.com/topic/51690-solved-determining-kbs/ Share on other sites More sharing options...
taith Posted May 16, 2007 Share Posted May 16, 2007 it is in kb... but it'd limit it swell :-) make sure it'd be before the file upload boxes... or it no work lol <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Link to comment https://forums.phpfreaks.com/topic/51690-solved-determining-kbs/#findComment-254640 Share on other sites More sharing options...
Suchy Posted May 16, 2007 Author Share Posted May 16, 2007 Cool that works. Thanks. Link to comment https://forums.phpfreaks.com/topic/51690-solved-determining-kbs/#findComment-254647 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.