upload video problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • linceman
    Master Sergeant

    • Jul 2010
    • 60

    upload video problem

    hi I'm setting up a form to upload videos to my site through my page


    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
  • linceman
    Master Sergeant

    • Jul 2010
    • 60

    #2
    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

    Comment

    • linceman
      Master Sergeant

      • Jul 2010
      • 60

      #3
      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

      Comment

      • linceman
        Master Sergeant

        • Jul 2010
        • 60

        #4
        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???

        Comment

        • linceman
          Master Sergeant

          • Jul 2010
          • 60

          #5
          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

          Comment

          • linceman
            Master Sergeant

            • Jul 2010
            • 60

            #6
            Re: upload video problem

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

            I love these selfthreads...

            Comment

            • linceman
              Master Sergeant

              • Jul 2010
              • 60

              #7
              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

              Comment

              Working...
              X