Results 1 to 7 of 7

Thread: upload video problem
      
   

  1. #1
    linceman's Avatar
    linceman is offline Master Sergeant
    Join Date
    Jul 2010
    Location
    Alicante, Spain
    Posts
    60

    Question upload video problem

    hi I'm setting up a form to upload videos to my site through my page
    http://www.alfaaudiovisual.com/sube_tu_video.php

    It upload imagen correctly to my uploads folder but the video I can't find anywhere...

    It actually does the action of uploading and it goes ok to success.html page... but the video is nowhere to be found.

    I've tried also success.php but no luck....

    Anyone has had the same problem? beíng able to upload images from the form but not the videos?

    Thx
    Newbie Linceman

  2. #2
    linceman's Avatar
    linceman is offline Master Sergeant
    Join Date
    Jul 2010
    Location
    Alicante, Spain
    Posts
    60

    Default Re: upload video problem

    Could it be that there is un upload limit that I don't know how to change somewhere in my server?
    If so please let me know how to change that.
    Thx

  3. #3
    linceman's Avatar
    linceman is offline Master Sergeant
    Join Date
    Jul 2010
    Location
    Alicante, Spain
    Posts
    60

    Default Re: upload video problem

    I have created an ABVFP Form setting the limit to 10000 kb, the form name has no spaces or anything... the hidden value has been introduced correctly in the creation of the form...

    uf... this is very entertaining... anyone help??

    thx
    newbie linceman

  4. #4
    linceman's Avatar
    linceman is offline Master Sergeant
    Join Date
    Jul 2010
    Location
    Alicante, Spain
    Posts
    60

    Default Re: upload video problem

    My form es at the page http://www.alfaaudiovisual.com/sube_tu_video.php

    that means that the form URL at the "ABVFP Administrator Area form details" should be the same one right???

  5. #5
    linceman's Avatar
    linceman is offline Master Sergeant
    Join Date
    Jul 2010
    Location
    Alicante, Spain
    Posts
    60

    Question Re: upload video problem

    The problem is that there is some kind of restriction to the file size limit around 2MB I'm not sure yet.

    But I can upload any file video or anything it it is smaller then 2 MB, but then if it's bigger
    I cannot upload it no matter what type of file it is.

    I have changed all the forms that a created on the ABVFP but that doesn't do anything...

    There must be some kind of restriction internally on the server .

    You've heard of a problem like this?

    Thx

  6. #6
    linceman's Avatar
    linceman is offline Master Sergeant
    Join Date
    Jul 2010
    Location
    Alicante, Spain
    Posts
    60

    Default Re: upload video problem

    Finally the thing is I need to know how to raise the limit....

    I love these selfthreads...

  7. #7
    linceman's Avatar
    linceman is offline Master Sergeant
    Join Date
    Jul 2010
    Location
    Alicante, Spain
    Posts
    60

    Default Re: upload video problem

    yes, this works beautifully


    <!-- /* SCRIPT NAME: modify_php_ini.php */ -->
    <?php
    // Put all the php.ini parameters you want to change below. One per line.
    // Follow the example format $parm[] = "parameter = value";

    $parm[] = "upload_max_filesize = 50M";
    $parm[] = "post_max_size = 50M";
    // full unix path - location of the default php.ini file at your host
    // you can determine the location of the default file using phpinfo()
    $defaultPath = '/usr/local/lib/php.ini';
    // full unix path - location where you want your custom php.ini file
    //$customPath = "/path/php.ini";
    $customPath = "php.ini";
    // nothing should change below this line.
    if (file_exists($defaultPath)) {
    $contents = file_get_contents($defaultPath);
    $contents .= "\n\n; MODIFIED THE FOLLOWING USER PARAMETERS:\n\n";
    foreach ($parm as $value) $contents .= $value . " \n";
    if (file_put_contents($customPath,$contents)) {
    if (chmod($customPath,0600)) $message = "<b>PHP.INI File modified and copied.</b>";
    else $message = "PROCESS ERROR - Failed to upadate php.ini.";
    } else {
    $message = "PROCESS ERROR - Failed to write php.ini file.";
    }
    } else {
    $message = "PROCESS ERROR - php.ini file not found.";
    }
    echo $message;
    ?>


    Copy the above code, paste it in Notepad, save is as "modify_php_ini.php". Upload it on your server and run it (type in your browser "http://www.yourdomain.com/modify_php_ini.php")

    It will modify the allowable file size to 50 Mb. If you need less, change it to 10, 20 or 30M, whatever you need.

    thx navaldesign for you previous threads....

    cheers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49