You are here: Re: Cannot upload large files « PHP Programming Language « IT news, forums, messages
Re: Cannot upload large files

Posted by Kim Andrι Akerψ on 01/14/08 14:15

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

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация