Cannot upload large files

This is a discussion on Cannot upload large files within the PHP Language forums, part of the PHP Programming Forums category; Hi I have an app, where I should upload files... Problem: when e.g. uploading 14MB (just 10MB) the page ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-14-2008
jodleren
 
Posts: n/a
Default Cannot upload large files

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?
Reply With Quote
  #2 (permalink)  
Old 01-14-2008
Captain Paralytic
 
Posts: n/a
Default Re: Cannot upload large files

On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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?
Reply With Quote
  #3 (permalink)  
Old 01-14-2008
Luuk
 
Posts: n/a
Default Re: Cannot upload large files


"jodleren" <sonnich@hot.ee> schreef in bericht
news:0a804278-fea1-47a8-b013-1fce82efdd52@t1g2000pra.googlegroups.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)



Reply With Quote
  #4 (permalink)  
Old 01-14-2008
jodleren
 
Posts: n/a
Default Re: Cannot upload large files

On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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
Reply With Quote
  #5 (permalink)  
Old 01-14-2008
Rik Wasmus
 
Posts: n/a
Default Re: Cannot upload large files

On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonnich@hot.ee> wrote:

> On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>> On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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
Reply With Quote
  #6 (permalink)  
Old 01-14-2008
jodleren
 
Posts: n/a
Default Re: Cannot upload large files

On Jan 14, 2:40*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.ee> wrote:
> > On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> >> On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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

>
> > 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- Hide quoted text -
>
> - Show quoted text -


Reply With Quote
  #7 (permalink)  
Old 01-14-2008
Rik Wasmus
 
Posts: n/a
Default Re: Cannot upload large files

On Mon, 14 Jan 2008 13:48:50 +0100, jodleren <sonnich@hot.ee> wrote:

> On Jan 14, 2:40*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>> On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.ee> wrote:
>> > On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>> >> On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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
Reply With Quote
  #8 (permalink)  
Old 01-14-2008
Kim André Akerĝ
 
Posts: n/a
Default Re: Cannot upload large files

Rik Wasmus wrote:

> On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonnich@hot.ee> wrote:
>
> >On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> >>On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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.cor....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)
Reply With Quote
  #9 (permalink)  
Old 01-15-2008
jodleren
 
Posts: n/a
Default Re: Cannot upload large files

On Jan 14, 4:15*pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
wrote:
> Rik Wasmus wrote:
> > On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.ee> wrote:
> > >On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> > >>On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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.cor....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
Reply With Quote
  #10 (permalink)  
Old 01-15-2008
jodleren
 
Posts: n/a
Default Re: Cannot upload large files

On Jan 15, 8:23*am, jodleren <sonn...@hot.ee> wrote:
> On Jan 14, 4:15*pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
> wrote:
>
>
>
>
>
> > Rik Wasmus wrote:
> > > On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.ee> wrote:
> > > >On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> > > >>On 14 Jan, 11:27, jodleren <sonn...@hot.ee> 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.cor....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...
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0