I need a good PHP-mySQL multi file uploader (better, if with process basr/status), that * rename the file names * insert file names in seperate mysql row * upload files to specified dir Please HELP me
do you know any PHP? You're not looking for full free code are you? lol Post the code you have and people will tell you whats wrong with it. If you want entire code.. get out your wallet
This should work. I didn't test it though. <?php if(isset($_POST['upload'])) { #Splits file name and file extension function findexts ($uploaded) { $filename = strtolower($uploaded) ; $exts = split("[/\\.]", $filename) ; $n = count($exts)-1; $exts = $exts[$n]; return $exts; } $ext = findexts ($_FILES['uploaded']['name']) ; #Renames the file to the current time. $ran = time(); $ran2 = $ran."."; #Target is where your file will upload to. $target = "/your/images/directory/"; $target = $target . $ran2.$ext; $ok=1; if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". $ran2.$ext . " has been uploaded"; $name = $ran2.$ext ; } else { echo "Sorry, there was a problem uploading your file."; } mysql_query("INSERT INTO `table` (`filecolumninDB`) VALUES ('$name')") or die(mysql_error()); ?> <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="multipart/form-data"> File:<input type="file" name="uploaded" /> <br /> <input type="submit" name="upload" value="Upload!"/> </form> Code (markup):
I know PHP, JSP, mySQL, Oracle I have multiple file (manually coded upload box) upload system (without processbar)
If you want the ability to have a "fancy" upload box with the ability to chose multiple files, you need a flash-uploader. HTML-forms / PHP-processing needs separate browse/file-picker boxes to chose multiple files. Also, for a progress bar, you need at least some javascript, more properly some AJAX which can communicate with the server and post back info.