Reply to Re: upload file error 3: "The uploaded file was only partially uploaded"

Your name:

Reply:


Posted by Curtis on 01/30/07 07:11

lawrence k wrote:
>
> On Jan 29, 6:18 pm, "lawrence k" <lkrub...@geocities.com> wrote:
>> I've a file that starts like this:
>>
>> <form id="pdsForm" method="post" action="/mcControlPanel.php"
>> class="mcForm" charset="UTF-8" enctype="multipart/form-data" >
>>
>> and it contains this input:
>>
>> <input id="biopic" name="biopic" type="file" />
>>
>> The script recieving it does this:
>>
>> $biopic = $this->core->getVar("biopic");
>> if (is_array($biopic)) {
>> print_r($biopic);
>>
>> I get:
>>
>> Array ( [name] => L-monkeySmall.jpg [type] => [tmp_name] => [error] =>
>> 3 [size] => 0 )
>>
>> Error 3 is "Array ( [name] => L-monkeySmall.jpg [type] => [tmp_name]
>> => [error] => 3 [size] => 0 )". As you can see, 0 kilobytes were
>> uploaded.
>>
>> What should I look for? I've been looking on the web for awhile and so
>> far I've found little useful information about what Error 3 typically
>> indicates.
>
> Worrisome. Poking around and trying to figure this one out myself, I
> used phpinfo(). I see this line:
>
> upload_tmp_dir no value no value
>
>
> What does it mean upload_tmp_dir "no value"? Is that normal?
>
> This is on one of those virtual hosted shared environement $25 a month
> type accounts, so I can ssh to the server and chance the php.ini.
>

Yeah, that shouldn't be the problem. The default php.ini setting is
for that setting to be commented out, in which case, it uses the
system's default. Have you checked the folder permissions?

Here's the PHP manual's error code list for file uploads. PHP's manual
should be the first place you look for stuff like this:

http://php.net/manual/en/features.file-upload.errors.php

It indicates that the file was only partially uploaded. I've never
encountered that myself, so try reading the user notes on the same
page. If that doesn't help, Google the exact phrase for error code 3.

--
Curtis

[Back to original 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация