Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- File upload
March 29, 2005, 5:50 am
rate this thread
I cant get my php script to upload a file to the default dir. I have
checked all the php.ini variables and made sure there is a default
temporary dir, as soon as i submit it just reloads the page. this is my
<form enctype="multipart/form-data" action="<?php echo
$_SERVER[PHP_SELF]; ?>" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
please help me! i dont know what to do!
Re: File upload
the flaw isn't in this part -> the page doesn't reload (i recon) but it
gets posted to itself. Can be a way to do it, but you'll need some php
to handle that.
Assuming your coding is all ok, you also have to make sure that your
permissions are all set to go. Chmod involved dirs and files to 0777,
test it, and if it works, you know the flaw is in that part,,,,,
Well this is mainlly because you forgot to add the necessary php
code:), you may want to read here for more
http://www.DevPlug.com -- Connecting Developers