473,545 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to upload large size files in chunks using PHP

245 New Member
Hey all,
I need to upload files which are large in size. Though there are 2 fuunction which set the max upload file size and increasing the execution time of the script at run time but is there any script which upload large size files and show the status of upload file size during uploading.
For example if my file size is 100MB then during uploading script tell how much transfer, how much remaining and tells the status of completion in percentage.


Hope to get the solution from this great experts community as i get always.
Apr 28 '09 #1
3 8261
dlite922
1,584 Recognized Expert Top Contributor
@neovantage
I'll bump this up again, but I don't think it's an easy thing to do. I'll look into it for you though because I'm curious and will need it myself in the future.

Does anybody know if the total file size is declared when the upload starts?

if we know that, then we can start a process to do the upload while your page (using ajax or refresh) queries the partial download tmp file. e.g. 34MB/100MB (so we show 34% complete) on the page.

2 things you need:

1. A way to get the total files size up front
2. A way to find what PHP is naming that temp file before it is done with it. (this is always generated randomly by PHP)

Complete those two challenges and the rest is a piece of cake.

Good luck,






Dan
May 1 '09 #2
neovantage
245 New Member
Thanks i will try my level best to do that
May 4 '09 #3
dlite922
1,584 Recognized Expert Top Contributor
@neovantage
I googled it, there's at least 2 solutions on sourceforge.net that can do this for you, or check out the thousand results I got from google when I searched for "php file upload progress"

It would be really nice of you if you come back here with a simple code or explanation of how it was done. I'm actually working on a file upload script that would be nice to have it.

"The best way to reinforce learning is by teaching" -- Anonymous




Dan
May 8 '09 #4

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

Similar topics

2
4397
by: Don | last post by:
Hi all, I need to read an uploaded file into chunks, so I can examine the acculative size between chunks to determine if a maximum size is being exceeded. I'm currently using the PHP function "move_uploaded_file()" to move it in one piece. But, I'm finding some clients files are bigger than I want to allow, and with that function I don't...
1
2875
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 done as "Simple html File Upload Control" upload file in one go. That i not want really, I want to upload it to the server from my aspx page in...
1
1937
by: Hutty | last post by:
I have a program that open text files and compares them, however, when reading files larger than 500kb the programs seems to bomb. I get re-directed to "page not found". Any idea how to get around this issue? Ultimate goal is to read text files as big as 50mb or more. I'm using the "input type=file " to upload file, and then using...
1
2583
by: AWHK | last post by:
Hi, I have a customer which want to upload LARGE files via a web-service and stream it into a database while it is uploading. I don't want to go out of my way and develop a large HTTP App. Module which intercepts a SOAP call and manually streams the file content to the database if it is a better solution. Any suggestions? Regards,...
7
10809
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're doing a proof-of-concept on WCF whereby we have a Windows form client and a Server. Our server is a middle-tier that interfaces with our SQL 05...
8
6054
by: Newcomsas | last post by:
Hello. I'm experiecing a problem with file uploads from ASP pages. On a Windows 2000 - IIS 5 server we're running an ASP Classic application that features an upload form for files of great dimensions (100+MB). Problem is, when we try to upload a file exceeding 3MB we retive almost immediatly a message such as 'The page cannot be...
12
2511
by: jodleren | last post by:
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.
7
3143
by: Bobby Edward | last post by:
Are there any ASP.NET compatible controls out there that will allow you to upload large files, up to 2 gb? Prefer free of course. ;)
8
17248
by: James From Canb | last post by:
Is there a way to open very large text files in VBA? I wrote some code in VBA under Excel 2003 to read database extracts, add the field names as the first line, and to convert the fixed length fields to tab delimited. This allowed the data to be imported into a data analysis tool. Easy so far. The problem came when I tried to open the...
0
7811
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7428
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5334
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1887
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1019
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
709
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.