You are here: Re: file upload problems « PHP Programming Language « IT news, forums, messages
Re: file upload problems

Posted by Fran Garcνa on 09/28/05 15:40

Maybe your file has a size higher than the maxim size allowed for the server

chotiwallah wrote:
> jmli...@gmail.com wrote:
>
>>I'm using the code:
>>
>>if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
>>$target_path)) {
>> echo "The file ". basename( $_FILES['uploadedfile']['name']). "
>>has been uploaded";
>>} else{
>> echo "There was an error uploading the file, please try again!";
>>}
>>
>>but move_uploaded_file keeps returning false. I checked the $_FILES
>>array and all the values are correct and it seems as if the file is on
>>ther server. I just can't move it. Any ideas anyone?
>>
>>I'm using a form to uploada the picture.
>>
>><form enctype="multipart/form-data" action="./uploadUserPhoto.php"
>>method="POST">
>><input type="hidden" name="MAX_FILE_SIZE" value="100000" />
>>Choose a picture to upload:
>><input name="uploadedfile" type="file" /><br />
>><input type="submit" value="Upload File" />
>></form>
>>
>>thanks,
>>
>>James
>
>
> no write permission in the dir you move the file to?
>
> micha
>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация