Connecting Tech Pros Worldwide Forums | Help | Site Map

Cannot upload large files

jodleren
Guest
 
Posts: n/a
#1: Jan 14 '08
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?

Captain Paralytic
Guest
 
Posts: n/a
#2: Jan 14 '08

re: Cannot upload large files


On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
Quote:
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?
Luuk
Guest
 
Posts: n/a
#3: Jan 14 '08

re: Cannot upload large files



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



jodleren
Guest
 
Posts: n/a
#4: Jan 14 '08

re: Cannot upload large files


On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
Quote:
On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>
Quote:
Hi
>
Quote:
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.
>
Quote:
I cannot get any information it looks like my server just reloads the
original page.
>
Quote:
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
Rik Wasmus
Guest
 
Posts: n/a
#5: Jan 14 '08

re: Cannot upload large files


On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonnich@hot.eewrote:
Quote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
Quote:
>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>>
Quote:
Hi
>>
Quote:
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.
>>
Quote:
I cannot get any information it looks like my server just reloads the
original page.
>>
Quote:
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
Quote:
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
jodleren
Guest
 
Posts: n/a
#6: Jan 14 '08

re: Cannot upload large files


On Jan 14, 2:40*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
Quote:
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.eewrote:
Quote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
Quote:
On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>
Quote:
Quote:
Hi
>
Quote:
Quote:
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.
>
Quote:
Quote:
I cannot get any information it looks like my server just reloads the
original page.
>
Quote:
Quote:
Any ideas?
>
Quote:
Quote:
What does phpinfo() tell you about maximum upload size?
>
Quote:
:-)
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
Quote:
>
Quote:
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 -
Rik Wasmus
Guest
 
Posts: n/a
#7: Jan 14 '08

re: Cannot upload large files


On Mon, 14 Jan 2008 13:48:50 +0100, jodleren <sonnich@hot.eewrote:
Quote:
On Jan 14, 2:40*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
Quote:
>On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.eewrote:
Quote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>>
Quote:
Hi
>>
Quote:
I have an app, where I should upload files...
Problem: when e.g. uploading 14MB (just 10MB) the page will load,
>then
Quote:
go back to the original page.... by some reason I cannot upload
>large
Quote:
files, larger than some 5 MB.
>>
Quote:
I cannot get any information it looks like my server just reloads
>the
Quote:
original page.
>>
Quote:
Any ideas?
>>
Quote:
>What does phpinfo() tell you about maximum upload size?
>>
Quote:
:-)
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
=?iso-8859-1?Q?Kim_Andr=E9_Aker=F8?=
Guest
 
Posts: n/a
#8: Jan 14 '08

re: Cannot upload large files


Rik Wasmus wrote:
Quote:
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonnich@hot.eewrote:
>
Quote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
Quote:
>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>
>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.
Quote:
Quote:
>
>I cannot get any information it looks like my server just reloads
the >>original page.
Quote:
Quote:
>
>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)
jodleren
Guest
 
Posts: n/a
#9: Jan 15 '08

re: Cannot upload large files


On Jan 14, 4:15*pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
wrote:
Quote:
Rik Wasmus wrote:
Quote:
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.eewrote:
Quote:
>On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>
Quote:
Quote:
Quote:
>>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.
Quote:
Quote:
Quote:
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,
>
Quote:
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
jodleren
Guest
 
Posts: n/a
#10: Jan 15 '08

re: Cannot upload large files


On Jan 15, 8:23*am, jodleren <sonn...@hot.eewrote:
Quote:
On Jan 14, 4:15*pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
wrote:
>
>
>
>
>
Quote:
Rik Wasmus wrote:
Quote:
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.eewrote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>
Quote:
Quote:
>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,
>
Quote:
Quote:
if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user
>
Quote:
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...
Luuk
Guest
 
Posts: n/a
#11: Jan 15 '08

re: Cannot upload large files



"jodleren" <sonnich@hot.eeschreef in bericht
news:b3d5d29e-9226-412b-9a4b-aff0d7242ec7@s12g2000prg.googlegroups.com...
On Jan 15, 8:23 am, jodleren <sonn...@hot.eewrote:
Quote:
On Jan 14, 4:15 pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
wrote:
>
>
>
>
>
Quote:
Rik Wasmus wrote:
Quote:
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.eewrote:
On Jan 14, 1:39 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>
Quote:
Quote:
>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,
>
Quote:
Quote:
if($_FILES['keyname']['error'] == UPLOAD_ERR_INI_SIZE) //alert user
>
Quote:
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....



Rik Wasmus
Guest
 
Posts: n/a
#12: Jan 15 '08

re: Cannot upload large files


On Tue, 15 Jan 2008 07:23:37 +0100, jodleren <sonnich@hot.eewrote:
Quote:
On Jan 14, 4:15*pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
wrote:
Quote:
>Rik Wasmus wrote:
Quote:
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <sonn...@hot.eewrote:
>On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>>
>
Quote:
Quote:
>>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.
>
Quote:
Quote:
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,
>>
Quote:
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
jodleren
Guest
 
Posts: n/a
#13: Jan 15 '08

re: Cannot upload large files


On Jan 15, 12:24*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
Quote:
On Tue, 15 Jan 2008 07:23:37 +0100, jodleren <sonn...@hot.eewrote:
Quote:
On Jan 14, 4:15*pm, Kim André Akerĝ <kiman...@NOSPAMbetadome.com>
wrote:
Quote:
Rik Wasmus wrote:
Quote:
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
Closed Thread