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

Problems with the Linux version of XAMPP, questions, comments, and anything related.

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

Postby tirengarfio » 22. November 2008 20:07

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
tirengarfio
 
Posts: 30
Joined: 19. October 2008 18:28

Postby Wiedmann » 22. November 2008 20:12

Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby tirengarfio » 23. November 2008 18:25

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..
tirengarfio
 
Posts: 30
Joined: 19. October 2008 18:28

Postby Nobbie » 23. November 2008 22:03

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.
Nobbie
 
Posts: 8758
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 1 guest