Cannot upload large files

Cannot upload large files

am 14.01.2008 12:27:10 von jodleren

Hi

I have an app, where I should upload files...
Problem: when e.g. uploading 14MB (just 10MB) the page will load, then
go back to the original page.... by some reason I cannot upload large
files, larger than some 5 MB.

I cannot get any information it looks like my server just reloads the
original page.

Any ideas?

Re: Cannot upload large files

am 14.01.2008 12:39:03 von Captain Paralytic

On 14 Jan, 11:27, jodleren wrote:
> Hi
>
> I have an app, where I should upload files...
> Problem: when e.g. uploading 14MB (just 10MB) the page will load, then
> go back to the original page.... by some reason I cannot upload large
> files, larger than some 5 MB.
>
> I cannot get any information it looks like my server just reloads the
> original page.
>
> Any ideas?

What does phpinfo() tell you about maximum upload size?

Re: Cannot upload large files

am 14.01.2008 12:43:10 von Luuk

"jodleren" schreef in bericht
news:0a804278-fea1-47a8-b013-1fce82efdd52@t1g2000pra.googleg roups.com...
> Hi
>
> I have an app, where I should upload files...
> Problem: when e.g. uploading 14MB (just 10MB) the page will load, then
> go back to the original page.... by some reason I cannot upload large
> files, larger than some 5 MB.
>
> I cannot get any information it looks like my server just reloads the
> original page.
>
> Any ideas?

There's an option in your php.ini named: upload_max_filesize
(see: http://www.radinks.com/upload/config.php)

Re: Cannot upload large files

am 14.01.2008 13:31:55 von jodleren

On Jan 14, 1:39=A0pm, Captain Paralytic wrote:
> On 14 Jan, 11:27, jodleren wrote:
>
> > Hi
>
> > I have an app, where I should upload files...
> > Problem: when e.g. uploading 14MB (just 10MB) the page will load, then
> > go back to the original page.... by some reason I cannot upload large
> > files, larger than some 5 MB.
>
> > I cannot get any information it looks like my server just reloads the
> > original page.
>
> > Any ideas?
>
> What does phpinfo() tell you about maximum upload size?

:-)
Got it - it says 12M(b). I'll look for a way to prompt that to the
user, and how to change that.

WBR
Sonnich

Re: Cannot upload large files

am 14.01.2008 13:40:01 von luiheidsgoeroe

On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:

> On Jan 14, 1:39 pm, Captain Paralytic wrote:
>> On 14 Jan, 11:27, jodleren wrote:
>>
>> > Hi
>>
>> > I have an app, where I should upload files...
>> > Problem: when e.g. uploading 14MB (just 10MB) the page will load, then
>> > go back to the original page.... by some reason I cannot upload large
>> > files, larger than some 5 MB.
>>
>> > I cannot get any information it looks like my server just reloads the
>> > original page.
>>
>> > Any ideas?
>>
>> What does phpinfo() tell you about maximum upload size?
>
> :-)
> Got it - it says 12M(b). I'll look for a way to prompt that to the
> user,

if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user

> and how to change that.

It's PHP_INI_PERDIR afaik, so php.ini, webserver configuration, and in the
case of Apache, .htaccess files.
--
Rik Wasmus

Re: Cannot upload large files

am 14.01.2008 13:48:50 von jodleren

On Jan 14, 2:40=A0pm, "Rik Wasmus" wrote:
> On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:
> > On Jan 14, 1:39=A0pm, Captain Paralytic wrote:
> >> On 14 Jan, 11:27, jodleren wrote:
>
> >> > Hi
>
> >> > I have an app, where I should upload files...
> >> > Problem: when e.g. uploading 14MB (just 10MB) the page will load, the=
n
> >> > go back to the original page.... by some reason I cannot upload large=

> >> > files, larger than some 5 MB.
>
> >> > I cannot get any information it looks like my server just reloads the=

> >> > original page.
>
> >> > Any ideas?
>
> >> What does phpinfo() tell you about maximum upload size?
>
> > :-)
> > Got it - it says 12M(b). I'll look for a way to prompt that to the
> > user,
>
> if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user

this does never happen in my case

>
> > and how to change that.
>
> It's PHP_INI_PERDIR afaik, so php.ini, webserver configuration, and in the=
=A0
> case of Apache, .htaccess files.
> --
> Rik Wasmus- Hide quoted text -
>
> - Show quoted text -

Re: Cannot upload large files

am 14.01.2008 13:56:25 von luiheidsgoeroe

On Mon, 14 Jan 2008 13:48:50 +0100, jodleren wrote:

> On Jan 14, 2:40 pm, "Rik Wasmus" wrote:
>> On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:
>> > On Jan 14, 1:39 pm, Captain Paralytic wrote:
>> >> On 14 Jan, 11:27, jodleren wrote:
>>
>> >> > Hi
>>
>> >> > I have an app, where I should upload files...
>> >> > Problem: when e.g. uploading 14MB (just 10MB) the page will load,
>> then
>> >> > go back to the original page.... by some reason I cannot upload
>> large
>> >> > files, larger than some 5 MB.
>>
>> >> > I cannot get any information it looks like my server just reloads
>> the
>> >> > original page.
>>
>> >> > Any ideas?
>>
>> >> What does phpinfo() tell you about maximum upload size?
>>
>> > :-)
>> > Got it - it says 12M(b). I'll look for a way to prompt that to the
>> > user,
>>
>> if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user
>
> this does never happen in my case

Hmmz, afaik, it should, what is the var_dump() of the actual value it
holds on failure?
--
Rik Wasmus

Re: Cannot upload large files

am 14.01.2008 15:15:48 von kimandre

Rik Wasmus wrote:

> On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:
>
> >On Jan 14, 1:39 pm, Captain Paralytic wrote:
> >>On 14 Jan, 11:27, jodleren wrote:
> > >
> >>> Hi
> > >
> >>> I have an app, where I should upload files...
> >>> Problem: when e.g. uploading 14MB (just 10MB) the page will load,
> then >>> go back to the original page.... by some reason I cannot
> upload large >>> files, larger than some 5 MB.
> > >
> >>> I cannot get any information it looks like my server just reloads
> the >>> original page.
> > >
> >>> Any ideas?
> > >
> > > What does phpinfo() tell you about maximum upload size?
> >
> > :-)
> > Got it - it says 12M(b). I'll look for a way to prompt that to the
> > user,
>
> if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user

That is, of course, if post_max_size hasn't been exceeded as well.
http://www.php.net/manual/en/ini.core.php#ini.post-max-size

If memory serves, the script loading will be aborted if the POST data
size is over the allowed size.

--
Kim André Akerø
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

Re: Cannot upload large files

am 15.01.2008 07:23:37 von jodleren

On Jan 14, 4:15=A0pm, Kim Andr=E9 Aker=F8
wrote:
> Rik Wasmus wrote:
> > On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:
> > >On Jan 14, 1:39=A0pm, Captain Paralytic wrote:=

> > >>On 14 Jan, 11:27, jodleren wrote:
>

> > >>> I have an app, where I should upload files...
> > >>> Problem: when e.g. uploading 14MB (just 10MB) the page will load,
> > then >>> go back to the original page.... by some reason I cannot
> > upload large >>> files, larger than some 5 MB.

> > > > What does phpinfo() tell you about maximum upload size?
> > > Got it - it says 12M(b). I'll look for a way to prompt that to the
> > > user,
>
> > if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user
>
> That is, of course, if post_max_size hasn't been exceeded as well.http://w=
ww.php.net/manual/en/ini.core.php#ini.post-max-size

I really see my problem now - but my system is hosted at one.com,
where my client holds their stuff. I was just looking at/trying
ini_set, but that failed. Since I am new to this - can I change these
values in any way?

WBR
Sonnich

Re: Cannot upload large files

am 15.01.2008 07:25:37 von jodleren

On Jan 15, 8:23=A0am, jodleren wrote:
> On Jan 14, 4:15=A0pm, Kim Andr=E9 Aker=F8
> wrote:
>
>
>
>
>
> > Rik Wasmus wrote:
> > > On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:
> > > >On Jan 14, 1:39=A0pm, Captain Paralytic wrot=
e:
> > > >>On 14 Jan, 11:27, jodleren wrote:
>
> > > >>> I have an app, where I should upload files...
> > > >>> Problem: when e.g. uploading 14MB (just 10MB) the page will load,
> > > then >>> go back to the original page.... by some reason I cannot
> > > upload large >>> files, larger than some 5 MB.
> > > > > What does phpinfo() tell you about maximum upload size?
> > > > Got it - it says 12M(b). I'll look for a way to prompt that to the
> > > > user,
>
> > > if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert use=
r
>
> > That is, of course, if post_max_size hasn't been exceeded as well.http:/=
/www.php.net/manual/en/ini.core.php#ini.post-max-size
>
> I really see my problem now - but my system is hosted at one.com,
> where my client holds their stuff. I was just looking at/trying
> ini_set, but that failed. Since I am new to this - can I change these
> values in any way?

Or can I at least read these out, so I can inform the user of the max
file size?

php_info echoes it all right way...

Re: Cannot upload large files

am 15.01.2008 09:54:42 von Luuk

"jodleren" schreef in bericht
news:b3d5d29e-9226-412b-9a4b-aff0d7242ec7@s12g2000prg.google groups.com...
On Jan 15, 8:23 am, jodleren wrote:
> On Jan 14, 4:15 pm, Kim André Akerø
> wrote:
>
>
>
>
>
> > Rik Wasmus wrote:
> > > On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:
> > > >On Jan 14, 1:39 pm, Captain Paralytic wrote:
> > > >>On 14 Jan, 11:27, jodleren wrote:
>
> > > >>> I have an app, where I should upload files...
> > > >>> Problem: when e.g. uploading 14MB (just 10MB) the page will load,
> > > then >>> go back to the original page.... by some reason I cannot
> > > upload large >>> files, larger than some 5 MB.
> > > > > What does phpinfo() tell you about maximum upload size?
> > > > Got it - it says 12M(b). I'll look for a way to prompt that to the
> > > > user,
>
> > > if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user
>
> > That is, of course, if post_max_size hasn't been exceeded as
> > well.http://www.php.net/manual/en/ini.core.php#ini.post-max- size
>
> I really see my problem now - but my system is hosted at one.com,
> where my client holds their stuff. I was just looking at/trying
> ini_set, but that failed. Since I am new to this - can I change these
> values in any way?

Or can I at least read these out, so I can inform the user of the max
file size?

php_info echoes it all right way...


From the page where you did get info on ini_set:
See Also
1) get_cfg_var()
2) ini_get()
3) ini_get_all()
4) ini_restore()
5) How to change configuration settings

so, try option 2, 3 or 5....

Re: Cannot upload large files

am 15.01.2008 11:24:57 von luiheidsgoeroe

On Tue, 15 Jan 2008 07:23:37 +0100, jodleren wrote:

> On Jan 14, 4:15 pm, Kim André Akerø
> wrote:
>> Rik Wasmus wrote:
>> > On Mon, 14 Jan 2008 13:31:55 +0100, jodleren wrote:
>> > >On Jan 14, 1:39 pm, Captain Paralytic wrote:
>> > >>On 14 Jan, 11:27, jodleren wrote:
>>
>
>> > >>> I have an app, where I should upload files...
>> > >>> Problem: when e.g. uploading 14MB (just 10MB) the page will load,
>> > then >>> go back to the original page.... by some reason I cannot
>> > upload large >>> files, larger than some 5 MB.
>
>> > > > What does phpinfo() tell you about maximum upload size?
>> > > Got it - it says 12M(b). I'll look for a way to prompt that to the
>> > > user,
>>
>> > if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user
>>
>> That is, of course, if post_max_size hasn't been exceeded as
>> well.http://www.php.net/manual/en/ini.core.php#ini.post-max- size
>
> I really see my problem now - but my system is hosted at one.com,
> where my client holds their stuff. I was just looking at/trying
> ini_set, but that failed. Since I am new to this - can I change these
> values in any way?

post max size/upload max size are AFAIK both PHP_INI_DIR, so you can
change those in php.ini/httpd.conf (which you probably can't reach), or an
..htaccess file, which most hosters allow. Most shared hosters I encounter
have a limit of something like 2M (which IMO is extremely low), but have
no problem if you up the limits for a specific script receiving files.
--
Rik Wasmus

Re: Cannot upload large files

am 15.01.2008 17:08:08 von jodleren

On Jan 15, 12:24=A0pm, "Rik Wasmus" wrote:
> On Tue, 15 Jan 2008 07:23:37 +0100, jodleren wrote:
> > On Jan 14, 4:15=A0pm, Kim Andr=E9 Aker=F8
> > wrote:
> >> Rik Wasmus wrote:

> post max size/upload max size are AFAIK both PHP_INI_DIR, so you can =A0
> change those in php.ini/httpd.conf (which you probably can't reach), or an=
=A0
> .htaccess file, which most hosters allow. Most shared hosters I encounter =
=A0
> have a limit of something like 2M (which IMO is extremely low), but have =
=A0
> no problem if you up the limits for a specific script receiving files.

You are right. I cannot reach those, just talked to one.com about it.
Still, I have 12M which is more tnan you mention here :-) I should be
happy.
I guess I'll just have to explain my client that....

WBR
Sonnich