-
after upload problem
Can you tell me how to fix this:
When i upload from the site exacly: test video number one.avi
After this on /video directory the file is like that: test-video-number-one.avi
And display me error on convertion becouse missing file, but the file is there, just his name is not same, have - between words.
Can you tell me how i can fix it?
Thanks!
-
Re: after upload problem
After upload the video, login to admin area => process quee => selct the video and convert than access the yourdomain/cron.php After that Post the content of cron.php
-
Re: after upload problem
<?php
$current_folder = dirname(__file__);
chdir("{$current_folder}");
require ($current_folder . "/include/config.php");
require ($current_folder . "/include/function.php");
require ($current_folder . "/include/functions_upload.php");
$sql = "SELECT * from `process_queue` WHERE status=0";
if (!($downloads = mysql_query($sql)))
{
mysql_die();
}
$num_downloads = mysql_num_rows($downloads);
$sql = "SELECT * from `process_queue` WHERE status=2";
if (!($process = mysql_query($sql)))
{
mysql_die();
}
$num_process = mysql_num_rows($process);
$cron = get_config("cron");
echo "cronjob started
";
if ($cron == 1)
{
$cron = 0;
if (0 < $num_downloads)
{
$video_info = mysql_fetch_assoc($downloads);
$video_id = $video_info['id'];
download_video($video_id);
}
else
if (0 < $num_process)
{
$video_info = mysql_fetch_assoc($process);
$video_id = $video_info['id'];
process_video($video_id);
}
}
else
{
$cron = 1;
if (0 < $num_process)
{
$video_info = mysql_fetch_assoc($process);
$video_id = $video_info['id'];
process_video($video_id);
}
else
if (0 < $num_downloads)
{
$video_info = mysql_fetch_assoc($downloads);
$video_id = $video_info['id'];
download_video($video_id);
}
}
$sql = "UPDATE `config` set `config_value`='" . $cron . "' where `config_name`='cron'";
if (!($tmp = mysql_query($sql)))
{
mysql_die();
}
?>
Thats the content from cron.php, cronjob is starter and is starting on evry 5 minutes, but why uploaded files haved separator "-" between words of the file. How to clean this separator?
-
-
Re: after upload problem
I have the same issue.
My site is http://www.tubeeireamnn.ie
Not only do the files get renamed to include a hyphen '-' instead of spaces in the file name but another extension is added in lower case i.e.
'video number one.avi' will result in 'video-number-one.AVI.avi'
At this stage the process que is still looking for the original file name but reports 'file not found'.
Is it possible to prevent people uploading files with spaces in the filename with an error message for them to correct, or would it be possible to amend the process que script to search the contents of the 'videos' folder as apposed to the predefined filename as recorded on upload.
This problem is only present when uploading through the user interface and ftp uploading and importing of videos works perfectly.
Hope the above is of some help
Thanks
Shane
TubeÉIREANN Support
-
Re: after upload problem