When I upload files using chunk jquery file upload plugin (https://github.com/kaltura/chunked-file-upload-jquery ) I have upload speed much less than regular upload via PHP :
( $config = new KalturaConfiguration($partnerId);
$config->serviceUrl = ‘http://www.kaltura.com/’;
$client = new KalturaClient($config);
$movie = $_FILES[‘file’][‘tmp_name’];
$token = $client->media->upload($movie); )
What is the reason of this behavior?
When performing a chunked upload operation, you have the overhead of splitting the original file into chunks at the client side and then also reassembling the file once all the chunks arrived on the server side. That overhead is of course in relation to how big the complete file is but it can certainly make a difference if the file is very large.
Hi @jess, thank you for the answer, but I don’t think that splitting and reassembling affect so much on upload speed
On this picture first chart is regular upload and second it’s chunk upload via plugin, video file size about 100 Megabytes
To clarify, I didn’t mean it has any bearings on the actual transfer rate but rather on the overall time it will take to process.
Hard to tell from this graph what actually affects the results.
Did you try to perform an upload using the AJAX client directly [http://cdnbakmi.kaltura.com/content/clientlibs/ajax_22-03-2017.tar.gz]? as in, without using https://github.com/kaltura/chunked-file-upload-jquery?