Uploading Files
Posted by: vinnieza (---.dsl.pipex.com)
Date: July 10, 2006 05:20PM

How do you turn on uploading files using a form e.g.

<input name="themeFile" type="file" />
<input type="submit" name="Submit" value="Submit" />

I have looked in php.ini and it says

"file_uploads = On
upload_tmp_dir = "C:/wamp/tmp"
upload_max_filesize = 2M"

However, when i upload my file and try to move it into a permanent folder it says it doesn't exist and when i upload files they don't even appear in the tmp folder. However, it's the right location as further down it says: "session.save_path = "C:/wamp/tmp"" and the sessions appear there and the paths are identical? What have i missed? There's no error messages apart from the file was not uploaded?



* no questions asked *

Options: ReplyQuote
Re: Uploading Files
Posted by: CyberSpatium (67.170.181.---)
Date: July 11, 2006 03:26AM

use your php code to tell php where to store the files. if are you going to be uploading files larger then 2mb, then edit your php.ini file, and change

upload_max_filesize = 2M

Options: ReplyQuote


Sorry, only registered users may post in this forum.