I am fairly new to image uploaders (worked in animation for a long time). I have an image upload form that works fine. The image uploads and redirects to another PHP page (imageupload_file.php) that confirms the image uploaded and gives you the name of the image and size on the server. By clicking a link you go through to another page (galleryinsert.php) where you can add the image details to, such as page to be shown on, section on the page. The only thing I cant do is get the image name to echo in the second details page. At …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am reading in a bunch of files to upload but they are in an array: [CODE]<input id="tab1file0" class="tab1Files files" type="file" name="tab1file[]" /> <input id="tab1file1" class="tab1Files files" type="file" name="tab1file[]" />[/CODE] To upload the files I call a function uploadFile() which looks like this: [CODE]function uploadFile($thefile) { $base_path = "files/"; $target_path = $base_path . basename( $_FILES[$thefile]['name']); echo($_FILES[$thefile]['tmp_name']); if(move_uploaded_file($_FILES[$thefile]['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES[$thefile]['name'])." has been uploaded <br>"; } else{ echo "There was an error uploading the file".basename( $_FILES[$thefile]['name']).", please try again!<br>"; } }[/CODE] The only problem is when I get the files from the form, they are …

Member Avatar
Member Avatar
+0 forum 1

Hello all. I've got this upload script, working just fine. [CODE] <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if($_SERVER["REQUEST_METHOD"] == "POST") { $image =$_FILES["file"]["name"]; $uploadedfile = $_FILES['file']['tmp_name']; if ($image) { $filename = stripslashes($_FILES['file']['name']); $extension = getExtension($filename); $extension = strtolower($extension); if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { $change='<div class="msgdiv">Ukendt fil format.<br /><br /></div> '; $errors=1; } else { $size=filesize($_FILES['file']['tmp_name']); if ($size > MAX_SIZE*1024) { $change='<div class="msgdiv">Du har overskredet …

Member Avatar
Member Avatar
+0 forum 1

i am trying to use the File upload feature in my application .. i am having a Form with many fields of type Text,textarea and including File upload FIeld. I have kept a Submit button at the end of the Form which on click will submit the actual value of the textbox /textarea and even the value for the Field of type File upload. [COLOR="Green"] [B]How to get the actual file that is uploaded and to save it in a location so that i can view the uploaded file later on ..[/B][/COLOR] The code that i have used is, [CODE]<form …

Member Avatar
+0 forum 0

I wish to limit uploading to the video files swf pps bmp pps png gif mpg mp3 and wav - i'm sure I have the file / type incorrect. can someone please give logical solution... here's my code: [code=php]<?php if ((($_FILES["file"]["type"] == "video/swf") || ($_FILES["file"]["type"] == "video/pps") || ($_FILES["file"]["type"] == "video/bmp") || ($_FILES["file"]["type"] == "video/pps") || ($_FILES["file"]["type"] == "video/png") || ($_FILES["file"]["type"] == "video/gif") || ($_FILES["file"]["type"] == "video/mp3") || ($_FILES["file"]["type"] == "video/wav")) && ($_FILES["file"]["size"] < 200000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br …

Member Avatar
Member Avatar
+0 forum 2

Hi all! –°onditions of a problem: 1) in one form post info and upload file 2) validation only php without js 3) associated fields: if the value is not the same, we don't need to validate field 4) associated fields: if the value is the same, we need echo new input And i don't know how make it all in one form without java. Google and others resource didn't help me :( May be you know how or where i can see tutorial for it problem? I've come to know all w3school, php.net, tizag, tutorials on pixel2life and tutsearch.net, nettuts …

Member Avatar
Member Avatar
+0 forum 6

Hi Please tell me how we can search PDF File , which is stored in folder like C:\Folder and then show in show.php page as dynamic link. also Upload new PDF File to Folder Please tell me how?

Member Avatar
Member Avatar
+0 forum 4

i want to create a program that can upload my new picture automatically. plez help..

Member Avatar
Member Avatar
+0 forum 1

The End.