473,383 Members | 1,853 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,383 software developers and data experts.

PHP Large file upload

Hi,

I am working on file upload script.
The problem is the code does not allow large file upload.
I have changed following values in php.ini.
• file_uploads
• upload_max_filesize
• max_input_time
• memory_limit
• max_execution_time
• post_max_size

Site works for small size files

Do I need to change any other setting.

Thanks,
Yogesh
Jul 8 '07 #1
10 1509
mwasif
802 Expert 512MB
Did you restart your webserver? Can you see updated values in phpinof()?
Jul 8 '07 #2
Did you restart your webserver? Can you see updated values in phpinof()?

Yes I checked the phpinfo() and it shows all updated values.
Jul 8 '07 #3
mwasif
802 Expert 512MB
What is the file size? What are the new values you set?
As I know, it should work if you change these values.
Jul 8 '07 #4
What is the file size? What are the new values you set?
As I know, it should work if you change these values.

As I remember when I worked with 20 MB files it worked.
But my client says when he tried with files of 50 MB it didnt work.

Thane values set by me are
file_uploads = On
upload_max_filesize = 900M
max_input_time = 100000000000000
memory_limit = 900M
max_execution_time = 10000000000
post_max_size = 900M


Please help
thanks,
Yogesh
Jul 8 '07 #5
mwasif
802 Expert 512MB
But my client says when he tried with files of 50 MB it didnt work.
This may be due to connection problem.

Did you try yourself with 50MB file?
Jul 8 '07 #6
This may be due to connection problem.

Did you try yourself with 50MB file?
You may be right. May be if the net connection is not working properly this happened.

Thanks,
Yogesh
Jul 8 '07 #7
You may be right. May be if the net connection is not working properly this happened.

Thanks,
Yogesh

I have one more question about paypal integration
Jul 8 '07 #8
mwasif
802 Expert 512MB
I worked with Paypal a long time ago. It will be better to create a new thread for Paypal question.
Jul 8 '07 #9
I worked with Paypal a long time ago. It will be better to create a new thread for Paypal question.

Thanks for your help
Jul 8 '07 #10
pbmods
5,821 Expert 4TB
Heya, Yogesh.

Did you remember to include a MAX_FILE_SIZE hidden input in your form?

Check the 'error' field in your $_FILES array. Here's an article that explains what they mean.
Jul 8 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Marc | last post by:
Hello, I have a page where i can upload binary file (using the HTML input type=file approach). This works fine for relatively small files (<6MB)) but when files get bigger (13MB) there is a...
2
by: Tim | last post by:
I meet problem on uploading a file with a large file size. Below is my code, how can I modify in order to be able to upload a large file successfully ? Thank for your help. upload.html: <html>...
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...
1
by: Ron Vecchi | last post by:
When posting a file upload I have taken in consideration the maxRequestLength and set it accordingly. In my case where a posibility of a 30 meg file can be uploaded I set it to 30720. Although...
1
by: Nawaz Ijaz | last post by:
Hi All, Just need to know that how can it be possible to upload large file in chunks of bytes. Suppose i have a large file (100 MB) and i want to upload it in chunks (say 20 KB). How can this be...
6
by: Paul | last post by:
Hi there, When adding a "File Field" HTML control to an aspx page to facilitate file uploading, the following occurs: 1. You select a file that is larger than the allowed size limit. 2. Once...
1
by: Fred Herring | last post by:
I have a client/server application which uses webservices functions to upload large byte arrays to the server and httpwebrequests to download the data files. I would like to use http to also...
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...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
6
by: howa | last post by:
Suppose the file is stored in "upload_tmp_dir ", so why I need to increase the memory limit? If I want to upload 100 MB, how large should I set? Thanks.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.