Jump to content

Search the Community

Showing results for tags 'php file upload'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 3 results

  1. hi there,i have made lots of working upload scripts and this if from 1 of them that i am having problems with... if ($_FILES['video_upload']['tmp_name'] != "") {$maxfilesize_vid = 203554432;if($_FILES['video_upload']['size'] > $maxfilesize_vid ) { $errorMsg_upload = "Your Video was too large. Must be 22MB or less, please try again."; unlink($_FILES['video_upload']['tmp_name']); here in $maxfilesize_vid i set it to 203554432 is that 22MB?plus i am aware that servers can have upload limits, so i spoke with my server admin and they told me to use... memory_limit = 50Mpost_max_size = 15Mfile_uploads = Onupload_max_filesize = 25M in file name php.ini to get the max file upload to 25MB i am still having problems when i try to upload a file that is 15MB but no problem from a file 3MB large.any help?
  2. redfinger

    Newbie Help!

    please why is this code not working <!DOCTYPE html><html><head> </head> <body><?php$allowedExts=array("gif","jpg","png","jpeg");$extension = end(explode(".",$_FILES["file"]["name"]));if ((( $_FILES["file"]["type"]=="image/png")|| ($_FILES["file"]["type"]=="image/jpg")|| ($_FILES["file"]["type"]=="image/jpeg")|| ($_FILES["file"]["type"]=="image/gif")|| ($_FILES["file"]["type"]=="image/x-png")|| ($_FILES["file"]["type"]=="image/pjpeg")&& ($_FILES["file"]["size"] < 20000)&& in_array ($extension, $allowedExts)) {if ($_FILES["file"]["error"] > 0){echo "error " . $_FILES["file"]["error"] . "<br>";}else{echo "Name " . $_FILES["file"]["name"] . "<br>";echo "Type " . $_FILES["file"]["type"] . "<br>";echo "Size " . ($_FILES["file"]["size"] /1024) . "<br>" ;echo "Stored in " . $_FILES["file"]["tmp_name"];}}else{echo "invalid file";} ?></body> </html> its giving this error Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\upload_script.php on line 19
  3. Greetings everyone, and thank you to the mods for allowing my account so rapidly! For a week or so now I've been trying to find information on how file uploads are stored in PhP. I'm creating an html photo upload form. I've figured everything out, except for how to handle the files. When you have: <form action="store.php" method="post" enctype="multipart/form-data"> <input type="file" name="images" multiple="multiple"></form> I know that for a single file $_FILES["images"]["tmp_name"] is where the file would be temporarily stored on the server. However, only one image is being stored here, not the two or three that I'm selecting using the upload form. Any assistance or tips would be greatly appreciated!
  • Create New...