modified : mass uploader issue fixed
This commit is contained in:
parent
37bd603a03
commit
428c18e5a4
2 changed files with 19 additions and 3 deletions
|
@ -48,7 +48,7 @@ if(isset($_POST['mass_upload_video']))
|
||||||
$file_arr = $files[$i];
|
$file_arr = $files[$i];
|
||||||
$file_path = $files[$i]['path'];
|
$file_path = $files[$i]['path'];
|
||||||
$file_orgname = $files[$i]['file'];
|
$file_orgname = $files[$i]['file'];
|
||||||
|
|
||||||
if($cbmass->is_mass_file($file_arr))
|
if($cbmass->is_mass_file($file_arr))
|
||||||
{
|
{
|
||||||
$code = $i+1;
|
$code = $i+1;
|
||||||
|
@ -91,6 +91,7 @@ if(isset($_POST['mass_upload_video']))
|
||||||
'tags' => $_POST['tags'][$i],
|
'tags' => $_POST['tags'][$i],
|
||||||
'category' => array($cbvid->get_default_cid()),
|
'category' => array($cbvid->get_default_cid()),
|
||||||
'file_name' => $file_name,
|
'file_name' => $file_name,
|
||||||
|
'file_directory' => $file_directory,
|
||||||
);
|
);
|
||||||
|
|
||||||
$vid = $Upload->submit_upload($array);
|
$vid = $Upload->submit_upload($array);
|
||||||
|
@ -107,13 +108,16 @@ if(isset($_POST['mass_upload_video']))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$file_directory = createDataFolders();
|
||||||
$array = array(
|
$array = array(
|
||||||
'title' => $_POST['title'][$i],
|
'title' => $_POST['title'][$i],
|
||||||
'description' => $_POST['description'][$i],
|
'description' => $_POST['description'][$i],
|
||||||
'tags' => $_POST['tags'][$i],
|
'tags' => $_POST['tags'][$i],
|
||||||
'category' => $_POST['category'.$code],
|
'category' => $_POST['category'.$code],
|
||||||
'file_name' => $file_key,
|
'file_name' => $file_key,
|
||||||
|
'file_directory' => $file_directory,
|
||||||
);
|
);
|
||||||
|
//pex($array,true);
|
||||||
$vid = $Upload->submit_upload($array);
|
$vid = $Upload->submit_upload($array);
|
||||||
}else{
|
}else{
|
||||||
e("\"".$file_arr['title']."\" is not available");
|
e("\"".$file_arr['title']."\" is not available");
|
||||||
|
@ -137,11 +141,23 @@ if(isset($_POST['mass_upload_video']))
|
||||||
//Moving file to temp dir and Inserting in conversion queue..
|
//Moving file to temp dir and Inserting in conversion queue..
|
||||||
|
|
||||||
$file_name = $cbmass->move_to_temp($file_arr,$file_key);
|
$file_name = $cbmass->move_to_temp($file_arr,$file_key);
|
||||||
$file_directory = createDataFolders();
|
|
||||||
createDataFolders(LOGS_DIR);
|
createDataFolders(LOGS_DIR);
|
||||||
$logFile = LOGS_DIR.'/'.$file_directory.'/'.$file_key.'.log';
|
$logFile = LOGS_DIR.'/'.$file_directory.'/'.$file_key.'.log';
|
||||||
//pex($logFile,true);
|
//pex($logFile,true);
|
||||||
$log = new SLog($logFile);
|
$log = new SLog($logFile);
|
||||||
|
|
||||||
|
$log->newSection("Pre-Check Configurations");
|
||||||
|
$log->writeLine("File to be converted", 'Initializing File <strong>'.$file_name.'.mp4</strong> and pre checking configurations...', true);
|
||||||
|
$hardware = shell_exec('lshw -short');
|
||||||
|
if ($hardware){
|
||||||
|
$log->writeLine("System hardware Information", $hardware, true);
|
||||||
|
}else{
|
||||||
|
$log->writeLine('System hardware Information', 'Unable log System hardware information, plaese install "lshw" ', true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$results=$Upload->add_conversion_queue($file_name);
|
$results=$Upload->add_conversion_queue($file_name);
|
||||||
$str = "/".date("Y")."/".date("m")."/".date("d")."/";
|
$str = "/".date("Y")."/".date("m")."/".date("d")."/";
|
||||||
$str1 = date("Y")."/".date("m")."/".date("d");
|
$str1 = date("Y")."/".date("m")."/".date("d");
|
||||||
|
|
|
@ -92,6 +92,6 @@
|
||||||
subtitle(lang("signup"));
|
subtitle(lang("signup"));
|
||||||
//Displaying The Template
|
//Displaying The Template
|
||||||
template_files('signup.html');
|
template_files('signup.html');
|
||||||
display_it()
|
display_it();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue