Hi David,
You can get the file size and valid it before the file save into your server. if too small, show the error message.
- <?php require_once "phpuploader/include_phpuploader.php" ?>
- <?php session_start(); ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>
- example
- </title>
- </head>
- <body>
-
- <form id="form1" method="POST">
- <?php
- $uploader=new PhpUploader();
- $uploader->Name="myuploader";
- $uploader->MultipleFilesUpload=true;
- $uploader->Render();
- ?>
- </form>
-
-
- <?php
- $fileguidlist=@$_POST["myuploader"];
- if($fileguidlist)
- {
- $guidlist=explode("/",$fileguidlist);
- foreach($guidlist as $fileguid)
- {
-
-
- $mvcfile=$uploader->GetUploadedFile($fileguid);
- if($mvcfile)
- {
- $size=$mvcfile->FileSize/1024;
- if($size>22)
- {
-
- }
- else
- {
-
-
- }
-
- }
- }
-
- }
- ?>
-
- </div>
- </body>
- </html>
Regards,
Ken