GIF89a;
Priv8 Uploader By InMyMine7
Linux server.abcbiz.in 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
--TEST--
uploadprogress_get_info - Returns info for uploading file
--SKIPIF--
<?php
if (!extension_loaded('uploadprogress')) exit('skip extension not loaded');
--FILE--
<?php
ini_set('uploadprogress.file.filename_template', dirname(__FILE__) . '/mocks/get_info/upt_%s.txt');
$info = uploadprogress_get_info('basic');
var_export($info);
--EXPECTF--
array (
'upload_id' => 'file001',
'fieldname' => 'uploadFile',
'filename' => 'example.txt',
'time_start' => '1579893044',
'time_last' => '30',
'speed_average' => '300',
'speed_last' => '300',
'bytes_uploaded' => '1592342',
'bytes_total' => '3000000',
'files_uploaded' => '1',
'est_sec' => '45',
)