|
Subject:
|
how do i determine size of file being uploaded?
|
|
Posted By:
|
kaos_frack
|
Post Date:
|
1/5/2007 10:10:18 AM
|
is it possible to identify the size of a file that is being uploaded? if yes, what if there are several files being uploaded? tnx
|
|
Reply By:
|
hit
|
Reply Date:
|
1/6/2007 12:29:47 AM
|
Can the following lines help you??
<?php if(isset($_POST['submit'])){ echo "File Size: ". filesize($_FILES['testfile']['tmp_name']). " bytes"; } ?> <html> <body> <form method="post" action="" enctype="multipart/form-data"> <input type="file" name="testfile" /> <input type="submit" name="submit" value="submit" /> </form> </body> </html>
|
|
Reply By:
|
paagle
|
Reply Date:
|
1/10/2007 5:27:18 AM
|
$sizevariable = filesize('filename'); is the code do anythin u want to after this................
--- Paagle TEAM LEADER-Team Xuberance(http://www.xuberance.com)
|
|
Reply By:
|
kaos_frack
|
Reply Date:
|
1/10/2007 2:48:14 PM
|
quote: Originally posted by hit
Can the following lines help you??
it sure does, thanks a lot!
|