473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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?
Jan 14 '08 #1
12 2503
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.

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?
Jan 14 '08 #2

"jodleren" <so*****@hot.eeschreef in bericht
news:0a**********************************@t1g2000p ra.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)

Jan 14 '08 #3
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
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.
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
Jan 14 '08 #4
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <so*****@hot.eewrote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>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.
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
Jan 14 '08 #5
On Jan 14, 2:40*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
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:
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 -
Jan 14 '08 #6
On Mon, 14 Jan 2008 13:48:50 +0100, jodleren <so*****@hot.eewrote:
On Jan 14, 2:40*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>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:
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
Jan 14 '08 #7
Rik Wasmus wrote:
On Mon, 14 Jan 2008 13:31:55 +0100, jodleren <so*****@hot.eewrote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>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.
>
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ĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Jan 14 '08 #8
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.eewrote:
>On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>>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
Jan 15 '08 #9
On Jan 15, 8:23*am, jodleren <sonn...@hot.eewrote:
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.eewrote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>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...
Jan 15 '08 #10

"jodleren" <so*****@hot.eeschreef in bericht
news:b3**********************************@s12g2000 prg.googlegroups.com...
On Jan 15, 8:23 am, jodleren <sonn...@hot.eewrote:
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.eewrote:
On Jan 14, 1:39 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>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....

Jan 15 '08 #11
On Tue, 15 Jan 2008 07:23:37 +0100, jodleren <so*****@hot.eewrote:
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.eewrote:
On Jan 14, 1:39*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 14 Jan, 11:27, jodleren <sonn...@hot.eewrote:
>>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
Jan 15 '08 #12
On Jan 15, 12:24*pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Tue, 15 Jan 2008 07:23:37 +0100, jodleren <sonn...@hot.eewrote:
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
Jan 15 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tihon | last post by:
Hello! I again need your help, just can't understand whats going on. Got this upload pictures form and it's having problem handling large files (~1.5 - 2 MB). Everything works fine if i just...
11
by: john_ramsden | last post by:
I have to prepare an Apache/PHP based (or perl if easier) web page that allows a user to upload very large files, possibly over 10 Gbytes and maybe up to 100 Gbytes. I'm aware that file upload...
4
by: Joe | last post by:
Hello, I have IIS 6.0 running on w2k3 Enterprise. I have three upload forms 1 to have restricted uploads .asp 2 to upload plain .asp any extension 3 a FP form upload non .asp
6
by: Thomas Due | last post by:
Hi, I am writing an ASP.NET project where I allow users to upload files to the server. I have changed to web.config to allow a total file size of 100MB. My problem is that if the total file size...
8
by: Braky Wacky | last post by:
Hello, I have an ASP.NET webpage that uses an instance of System.Web.UI.HtmlControls.HtmlInputFile for uploading files to our server. I came across the documentation at MSDN for upping the...
6
by: Robert Strickland | last post by:
What is the default file size limit when uploading a file and can the administrator up that limited when needed?
1
by: Charlie | last post by:
Hi: I'm using the HTML File Field control as a file picker for uploading files to a SQl Server image field. When page posts back to initiate upload, if file is small (under about two megs) all...
16
by: lawrence k | last post by:
I've a file upload script on my site. I just now used it to upload a small text document (10k). Everything worked fine. Then I tried to upload a 5.3 meg Quicktime video. Didn't work. I've...
7
by: Rozzy | last post by:
Hi, I need some recommendations for uploading files to the server. Right now I have a php script that uses ftp to upload, download, and delete files, and everything works fine for small files. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.