Page 1 of 1

A code to upload a file: where will i find the file ?

PostPosted: 22. November 2008 20:07
by tirengarfio
Hi,

this code below should upload a file somewhere, but i don't know where the files are placed when you upload them using XAMPP...

Code: Select all
<html>
    <head><title>File Uploading</title></head>
    <body>

   <form action="" method="post" enctype="multipart/form-data">
       
       <input type="file" name="file" />
       <input type="submit" name="submit" value="Upload file" />
   
    </form>


    </body>
</html>


Any idea?

Ciao

PostPosted: 22. November 2008 20:12
by Wiedmann

PostPosted: 23. November 2008 18:25
by tirengarfio
Wiedmann wrote:http://de.php.net/manual/en/features.file-upload.php


Thanks Wiedmann,

i've written a code to print the temporary path where the server locates the file and it prints this:

/tmp/phpigcJVh


Then i go to that path and i don`t find anything..

PostPosted: 23. November 2008 22:03
by Nobbie
The (temporary) file is deleted after the script has finished.

You must copy or move that file to any destination (using your PHP script), if you want to keep it.