Hi everyone! Have just implemented a new upload script on my website, its in PHP but I would like to make it a bit more advance.
Currently, all files get uploaded to http://www.vee-media.com/upload/ but I would really prefer for each file to get a unique location e.g http://www.vee-media.com/fas09jasf/ . I think that this would be a good idea because all the uploaded files wont stay in the same place.
Also, I would also like to put an upload status bar or window when uploading? Does anyone know how I could achieve this?
Here is the script:
I would be very grateful for any help!
Regards,
AJ.
P.S Hope you had a merry christmas and have a good new year!
Currently, all files get uploaded to http://www.vee-media.com/upload/ but I would really prefer for each file to get a unique location e.g http://www.vee-media.com/fas09jasf/ . I think that this would be a good idea because all the uploaded files wont stay in the same place.
Also, I would also like to put an upload status bar or window when uploading? Does anyone know how I could achieve this?
Here is the script:
PHP:
<?php
$target = "upload/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
$ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
$URL="http://www.vee-media.com/uploaded.html";
header ("Location: $URL");
}
?>
I would be very grateful for any help!
Regards,
AJ.
P.S Hope you had a merry christmas and have a good new year!