Results 1 to 6 of 6

Thread: after upload problem

  1. #1
    Join Date
    Apr 2008
    Posts
    2

    Default 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!

  2. #2

    Default 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

  3. #3
    Join Date
    Apr 2008
    Posts
    2

    Default 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?

  4. #4

  5. #5

    Default 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

  6. #6

    Default Re: after upload problem

    Still no responce,

Similar Threads

  1. upload problem
    By thaya in forum Installation Support
    Replies: 12
    Last Post: 08-01-2008, 09:50 AM
  2. Upload problem
    By jackyjacky in forum Installation Support
    Replies: 3
    Last Post: 07-08-2008, 11:41 AM
  3. Upload problem
    By XdeanX in forum Installation Support
    Replies: 2
    Last Post: 03-07-2008, 05:52 AM
  4. Problem with Upload
    By hoque in forum Installation Support
    Replies: 4
    Last Post: 11-29-2007, 10:04 AM
  5. Upload Problem
    By wannaclip in forum General Discussions
    Replies: 3
    Last Post: 06-23-2007, 02:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •