File Upload

Questions and bug reports for current release of CKForms

File Upload

Postby tomm » Fri Apr 23, 2010 6:15 pm

Hello,

is it possible to limit the filesize, so that the form can only be send ,if the size is under the limit
I want to get an error message,when the size is too big

like this....
Code: Select all
<?php
if (filesize($_FILES['file']['tmp_name']) > 20480) { move_uploaded_file($_FILES["file"]["tmp_name"],"./files/".$_FILES["file"]["name"]); } else { echo "the file is too big";}
?>
tomm
 
Posts: 1
Joined: Fri Apr 23, 2010 6:06 pm
Top

Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: No registered users and 0 guests