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

How to split uploads up and concatenate them back together in PHP?

Hi,

I am allowing users to upload video files in my website. If the user needs to upload 3MB video file he has to wait for long time. So i am searching for the solution . I have gone through this link still problem not resolved. Can you pl tell me how do i detect the video size before uploading and if it exceeds 500KB split and upload the chunks and recombine the parts before saving .

NEED SOLUTION IN PHP

Hi this is very urgent.. Help is appreciable.. Thanks in advance...
Jan 16 '11 #1
2 2652
Well unless you compress the data before you upload it's gonna take as long as it's gonna take to upload N number of bytes.
This really depend on the speed of the connection between server and the client.

However you can make the end-user experience a little better by displaying some sort of an indication that the upload is progressing, maybe displaying the progress.

My favorite tool for this is (SWF Upload.
Using SWF Upload, I have done a web page that upload multiple images (around 10Mb each) and everything works pretty smoothly.
Jan 16 '11 #2
kovik
1,044 Expert 1GB
Firstly, what you want to do is not possible. You can't control the upload or modify the files on the user's computer. You can only accept or deny the upload. And if 3MB is a slow upload, then you should consider upgrading your server's connection since videos can get much, much larger than that. The upload speed is related to the speed of the client's connection and the speed of the server's connection. Generally, you want the client's connection to be the bottleneck, not your server's.

~Sudaraka's suggestion of showing progress is a good one. This requires the use of 3rd party plugins such as Flash or Java (and possibly Silverlight, though I've yet to try it) serving as an active medium between the server and the client.
Jan 17 '11 #3

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

Similar topics

6
by: nwheavyw8 | last post by:
I am currently trying to write a simple PHP script that will split an uploading file up into 500kb "chunks", then read and concatenate them back together when accessed for download. I can't seem...
6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
0
by: Nolan | last post by:
I have an XML document from another database that I can successfully import into Access. There are multiple tables and they all parse correctly into those tables in Access. I can manipulate the...
4
by: Juan | last post by:
Does any one know if there are reported bugs when concatenating strings? When debugging each variable has the correct value but when I try to concatenate them some values are missing (I can´t see...
1
by: ebobnar | last post by:
I need to call the function LoadImage which take a LPCTSTR argument to specify the path to the image to load. However, I need to create this path dynamically from user input by concatenating...
4
by: Richard L Rosenheim | last post by:
Is there any built-in method or mechanism for concatenating two arrays of byte together? I haven't come across anything to do this, and was just checking before I implement some code. Richard...
7
by: Jake Barnes | last post by:
I've a little webcam program that snaps a picture of me and uploads it every 20 seconds. It automatically uploads the image to my server. It always give the image the same name, and thus it...
2
by: David Thielen | last post by:
Hi; I've see this done so I know it's possible. How can I set things up so a user clicks on a rtf file on the website, that launches it in Word where they edit it, and then when they click the...
15
by: Daren | last post by:
Hi, I need to be able to split large string variables into an array of lines, each line can be no longer than 70 chars. The string variables are text, so I would additionally like the lines...
3
by: sophie_newbie | last post by:
Hi, I'm running a python cgi script on a frontend web server and I want it to spawn another script (that takes a long time to run) on a backend number crunching server thats connected to the...
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
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
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,...
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...
0
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,...

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.