Well, I have been looking through and adding stuff to various loader php scripts and I am stuck on this one part.
It uploads the file to the destination [/files] but I want the image / file to show afterwards. How would I do this..?
Uploader.Php;
Config;PHP Code:<?php
error_reporting(0);
$filepath = getcwd()."/files/";
if(!file_exists($filepath)) {
mkdir($filepath,0777);
}
chmod($filepath,0777);
if(move_uploaded_file($_FILES['Filedata']['tmp_name'], $filepath.$_FILES['Filedata']['name'])){
chmod($filepath.$_FILES['Filedata']['name'], 0777);
}
?>
PHP Code:<fileFilter value="Word,*.doc;*.rtf,Excel,*.xls;*.csv,PDF,*.pdf,Image,*.png;*.gif;*.tiff;*.bmp;*.jpg;*.jpeg" />
<redirectURL value="/files/$filepath.$_FILES['Filedata']['name']" />
<redirectTarget value="_self" />
+REP to all help!
Or.. If you can suggest another decent uploader script that will show the link / the image of the file then post here!!





Reply With Quote




lol.