upload php check the maximum files size upload - php

upload php check the maximum files size

 
  • HOME  • tutorials  • photos   • free grafics design   
   



CATEGORIES
EXCEL TUTORIAL
SQL TUTORIAL
WEB INFORMATION
WINDOWS
JAVASCRIPT SCRIPTS
COMPUTER SECURITY
GRAFIC DESIGN
HTML
PHP
CSS STYLE
ATLAS OF THE WORLD
DEVELOPER
PHOTOSHOP
MAGAZINE
LATEST ARTICLES
how to insert decimal values into a sql table row
asrep.com adsense traking script is down
list of walt disney animated movies
free php and ajax captcha scripts
convert uppercase to lowercase javascript online script
detect and block uppercase (up letters) in a string (form text input) php script
php googlebot detection script
replace breaking lines in text or textarea input using php
rounded borders corners css without images
photoshop styles, asl photoshop style free download
  home   PHP » UPLOAD PHP CHECK THE MAXIMUM FILES SIZE
google ads
 
 
 


UPLOAD PHP CHECK THE MAXIMUM FILES SIZE


STEP 4
Check the maximum file size

This validation help us prevent loading large files on the server.

First you must define next strings that have control de maxim for a uploading file  
 

$uploaded_size=$_FILES['userfile']['size'];
$maximum_size='182000';
the condition for validation is: 
elseif ($uploaded_size > $maximum_size)
{
echo '<center><font color=red>Your file<strong>"'.$_FILES['userfile']['name'].'"</strong> is too large.</font><br>maximum file size is "'.$maximum_size.'"';






$uploaded_size=$_FILES['userfile']['size'];  - this string define the user files uploaded size 
$maximum_size='182000';  - this string is maximum size that you allowed for upload 


You can replace with any size ; 182000 is equivalent of 1,82 mb 

error message in this validation case is  :

Your file"example.JPG" is too large.
maximum file size is "182000" 




!!
You can change the text but not this part "'.$_FILES['userfile']['name'].'"

» CREATE HTML ( PHP ) FORM
» STEP 2 : VALIDATION PHP : CHECK FILE EXTENSION IF IS  ALOWED / NOT ALLOWED  TO BE UPLOADED
» STEP 3 : VALIDATION PHP : CHECK IF A FILE WITH THE SAME NAME EXIST ON SERVER
» STEP 4 : VALIDATION PHP : CHECK THE FILE MAXIMUM SIZE
» STEP 5 : MOVE UPLOAD FILE IN UPLOAD DIRECTORY ON SERVER
» STEP 6: DEMO PAGE -PHP UPLOAD SCRIPT IN ACTION
»
STEP 7: DOWNLOAD THE SCRIPT
 


ARTICLES IN UPLOAD PHP CHECK THE MAXIMUM FILES SIZE CATHEGORY

Zero result!!



Tags : ,






Leave a comment
Your name *
E-mail * ( it not be posted)
Comment title *
Your comment *
   Anti Spam (fill the number CASE SENSITIVE - UP LETTERS ) *

There are no comments ...The page was not find

 

 

the latest articles :
• How to insert decimal values into a SQL table row
• Asrep.com adsense traking script is down
• List of Walt Disney animated movies
• Free PHP and AJAX CAPTCHA scripts
• Convert uppercase to lowercase javascript online script
• Detect and block uppercase (up letters) in a string (form text input) php script
• Php Googlebot detection script
• Replace breaking lines in text or textarea input using php
• Rounded borders corners css without images
• Photoshop styles, asl photoshop style free download

 

eXTReMe Tracker