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; "jodleren" <sonnich@hot.ee> schreef in bericht news:b3d5d29e-9226-412b-9a4b-aff0d7242ec7@s12g2000prg.googlegroups.com... ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

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


"jodleren" <sonnich@hot.ee> schreef in bericht
news:b3d5d29e-9226-412b-9a4b-aff0d7242ec7@s12g2000prg.googlegroups.com...
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...


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....



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

On Tue, 15 Jan 2008 07:23:37 +0100, jodleren <sonnich@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?


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
Reply With Quote
  #13 (permalink)  
Old 01-15-2008
jodleren
 
Posts: n/a
Default Re: Cannot upload large files

On Jan 15, 12:24*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Tue, 15 Jan 2008 07:23:37 +0100, jodleren <sonn...@hot.ee> wrote:
> > On Jan 14, 4:15*pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
> > wrote:
> >> Rik Wasmus wrote:


> 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.


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
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 09:59 PM.


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