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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
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? |
|
|||
|
"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) |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 - |
|
|||
|
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 |
|
|||
|
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) |
|
|||
|
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 |
|
|||
|
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... |