By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,969 Members | 2,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,969 IT Pros & Developers. It's quick & easy.

upload file error 3: "The uploaded file was only partially uploaded"

P: n/a
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.

Jan 29 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Rik
lawrence k <lk******@geocities.comwrote:
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");
We have no clue what code $this->core->getVar() does...
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.
1. Check what upload directory is set.
2. Check wether you have writing permissions in that directory.
3. Make sure you've got space left (see another big thread about 2 weeks
ago I think...).
--
Rik Wasmus
Jan 29 '07 #2

P: n/a


On Jan 29, 6:45 pm, Rik <luiheidsgoe...@hotmail.comwrote:
lawrence k <lkrub...@geocities.comwrote:
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");We have no clue what code $this->core->getVar() does...

Sorry. It basically is the same as:

$biopic = $_POST["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.1. Check what upload directory is set.
2. Check wether you have writing permissions in that directory.
3. Make sure you've got space left (see another big thread about 2 weeks
ago I think...).
--
Rik Wasmus
Jan 30 '07 #3

P: n/a


On Jan 29, 6:18 pm, "lawrence k" <lkrub...@geocities.comwrote:
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.

Jan 30 '07 #4

P: n/a
lawrence k wrote:
>
On Jan 29, 6:18 pm, "lawrence k" <lkrub...@geocities.comwrote:
>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.fi...oad.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
Jan 30 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more PHP Questions on Bytes