473,399 Members | 3,919 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,399 software developers and data experts.

PHP Download Limitation 2MB

I have uploaded a file that is over 8MB and that is successful and I
have verified that it is a successful upload.

However, that same file seems to have a download limitation of 2MB
which I thought only applied to uploads. When downloading via IE, it
shows the actual file size of 8+MB but then stops quarter of the way at
2MB.

Is this a simple configuration fix that I am missing?

Thanks in advance!
-c

Jul 17 '05 #1
4 2810
si**********@bah.com wrote:
I have uploaded a file that is over 8MB and that is successful and I
have verified that it is a successful upload.

However, that same file seems to have a download limitation of 2MB
which I thought only applied to uploads. When downloading via IE, it
shows the actual file size of 8+MB but then stops quarter of the way at
2MB.

Is this a simple configuration fix that I am missing?


php.ini -->
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

/Marcin
Jul 17 '05 #2
On Wed, 29 Jun 2005 15:45:05 -0700, singh_chintu wrote:
I have uploaded a file that is over 8MB and that is successful and I
have verified that it is a successful upload.

However, that same file seems to have a download limitation of 2MB
which I thought only applied to uploads. When downloading via IE, it
shows the actual file size of 8+MB but then stops quarter of the way at
2MB.

Is this a simple configuration fix that I am missing?


If you're using PHP 5.0.4, you've probably been bitten by a readfile() bug
that caused files over 2 MB to be truncated. It has been fixed in CVS, but
of course, there hasn't been a 5.0 release since then.

Adam

--
Adam Harvey
Optimiser Pty Ltd

To e-mail: don't make an example out of me!

Jul 17 '05 #3
*** Marcin Dobrucki wrote/escribió (Fri, 01 Jul 2005 07:17:24 GMT):
php.ini -->
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


Also, you need that the web server accepts uploads larger than 2MB. In
Apache that's controlled by the following directive:

<Files *.php>
LimitRequestBody 5242880
</Files>
See http://www.php.net/features.file-upload for further info.

--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Jul 17 '05 #4
It seems as though it must be because of the readfile() bug for a
couple reasons. I am already uploading files greater than 2MB and my
php.ini file states: upload_max_filesize = 200M.

I am using IIS, not apache and I do not think that IIS has any sort of
file limitation setting by default. I will be waiting for the new
release of PHP which I hope will be soon :)

Chintu

Jul 17 '05 #5

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

Similar topics

0
by: Nicolas C. | last post by:
Hello, I'd like to make some download speed limitation on some of my files using PHP. I know that an Apache module can do that, but i cannot access my ISP Apache configuration. My idea was to...
1
by: Nicolas C. | last post by:
Hello, I'd like to make some download speed limitation on some of my files using PHP. I know that an Apache module can do that, but i cannot access my ISP Apache configuration. My idea was to...
0
by: umesh | last post by:
Hi, I am using MicroSoft.NET Framework 1.1 Version 1.1.4322 on Japanese Windows 2000. In my application, I have given user facility to upload and download the files. If FileName is...
2
by: Ole Hanson | last post by:
Hi It seems to be virtually impossible to perform a download of more than 2 files at the time from any website? The same limitation seems to be put on IE, if I'm using that as Client. I want...
2
by: Ned Chamberlain | last post by:
I have a page that currently allows the user to select the file and do a file/save as to their computer from IE. There has to be a way to allow the user to select multiple files and have them...
2
by: Bruno Piovan | last post by:
Hi, I have a download procedure like this http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B812406 I use this option because the files cannot be stored in a public folder in the...
4
by: Saurabh Kumar | last post by:
Hi, I need to develop a download manager using vb.net, the requirement being that it can download X files together, with every file having individual Y parts being downloaded from mirrors. How do...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.