video/image upload script?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #16
    Re: video/image upload script?

    Originally posted by zangoo
    I was trying out this upload script. Everytime I run it I only get the Thank You Page and an email with no infofor link, file etc. Any help will do.
    Please upload your php script.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • bannacom
      Sergeant

      • Jun 2006
      • 26

      #17
      Re: video/image upload script?

      i used above mentioned instruction and adjusted it for my needs. everything works great except last line "comment". i dont know where is the problem, there is no comment text in email. My form: http://www.bannerclickmania.com/form1.php



      <?php

      // Receiving variables
      @$userfile_Name = $_FILES['userfile']['name'];
      @$userfile_Size = $_FILES['userfile']['size'];
      @$userfile_Temp = $_FILES['userfile']['tmp_name'];
      @$userfile_Mime_Type = $_FILES['userfile']['type'];
      @$Name = addslashes($_POST['Name']);
      @$Email = addslashes($_POST['Email']);
      @$comment = addslashes($_POST['comment']);
      function RecursiveMkdir($path)
      {
      if (!file_exists($path))
      {
      RecursiveMkdir(dirname($path));
      mkdir($path, 0777);
      }
      }
      if ($userfile_Size>0)
      {
      // Validation
      if( $userfile_Size == 0)
      {
      header("Location: errorpage.html");
      exit;
      }
      if( $userfile_Size >5000000)
      {
      //delete file
      unlink($userfile_Temp);
      header("Location: errorpage.html");
      exit;
      }
      $uploadFile = "upload/".$userfile_Name ;
      if (!is_dir(dirname($uploadFile)))
      {
      @RecursiveMkdir(dirname($uploadFile));
      }
      else
      {
      @chmod(dirname($uploadFile), 0777);
      }
      @move_uploaded_file( $userfile_Temp , $uploadFile);
      chmod($uploadFile, 0644);
      $userfile_URL = "http://www.bannerclickmania.com/upload/".$userfile_Name ;
      }

      //Sending Email to form owner
      $pfw_header = "From: $Email\n"
      . "Reply-To: $Email\n";
      $pfw_subject = "New File Upload";
      $pfw_email_to = "addbanner@bannerclickmania.com";
      $pfw_message = "There is a new file uploaded.\n"
      . "-----------------------------------\n"
      . "File Link: $userfile_URL\n"
      . "Name: $name\n"
      . "Email: $Email\n"
      . "Webpage: $webpage\n"
      . "Numbercell: $numbercell\n"
      . "Micetext: $micetext\n"
      . "Password: $password\n"
      . "Comment: $comment\n";
      *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
      header("Location: thankyoupage.html");
      ?>
      FOLLOW ME, I’M LOST TOO

      www.bannerclickmania.com

      Comment

      • bannacom
        Sergeant

        • Jun 2006
        • 26

        #18
        Re: video/image upload script?

        I forgot to ask. How to add my option butons to the code?
        FOLLOW ME, I’M LOST TOO

        www.bannerclickmania.com

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #19
          Re: video/image upload script?

          The two radio buttons should belong to the same group. I don't know why you don't receive the comment textarea content. It looks ok.
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment

          • VodaHost
            General & Forum Administrator

            • Mar 2005
            • 12356

            #20
            Re: video/image upload script?

            click the below...


            VodaHost

            Your Website People!
            1-302-283-3777 North America / International
            02036089024 / United Kingdom
            291916438 / Australia

            ------------------------

            Top 3 Best Sellers

            Web Hosting - Unlimited disk space & bandwidth.

            Reseller Hosting - Start your own web hosting business.

            Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


            Comment

            • lost-angel
              Sergeant First Class

              • Mar 2006
              • 53

              #21
              Re: video/image upload script?

              Was getting alot of test submissions... blank forms sumitted. This webpage (video upload) has been removed from http://www.lost-angelz.com and replaced with a standard contact form, The script supplied by naval design does work. Page was removed from website only because uploading files was no longer needed. If you do use the script you may want to ad a validator code string to stop blank submissions.
              Lost-Angelz.com ****: http://www.lost-angelz.com/Lost-Angelz****off.html

              Comment

              • rameshdgr8
                Private

                • Jul 2007
                • 3

                #22
                Re: video/image upload script?

                Originally posted by navaldesign View Post
                <?php

                // Receiving variables
                @$userfile_Name = $_FILES['userfile']['name'];
                @$userfile_Size = $_FILES['userfile']['size'];
                @$userfile_Temp = $_FILES['userfile']['tmp_name'];
                @$userfile_Mime_Type = $_FILES['userfile']['type'];
                @$Name = addslashes($_POST['Name']);
                @$E-mail = addslashes($_POST['E-mail']);
                @$comment = addslashes($_POST['comment']);
                function RecursiveMkdir($path)
                {
                if (!file_exists($path))
                {
                RecursiveMkdir(dirname($path));
                mkdir($path, 0777);
                }
                }
                if ($userfile_Size>0)
                {
                // Validation
                if( $userfile_Size == 0)
                {
                header("Location: errorpage.html");
                exit;
                }
                if( $userfile_Size >50000)
                {
                //delete file
                unlink($userfile_Temp);
                header("Location: errorpage.html");
                exit;
                }
                $uploadFile = "upload/".$userfile_Name ;
                if (!is_dir(dirname($uploadFile)))
                {
                @RecursiveMkdir(dirname($uploadFile));
                }
                else
                {
                @chmod(dirname($uploadFile), 0777);
                }
                @move_uploaded_file( $userfile_Temp , $uploadFile);
                chmod($uploadFile, 0644);
                $userfile_URL = "http://www.lost-angelz.com/upload/".$userfile_Name ;
                }

                //Sending Email to form owner
                $pfw_header = "From: $E-mail\n"
                . "Reply-To: $E-mail\n";
                $pfw_subject = "New File Upload";
                $pfw_email_to = "youremail@yourdomain.com";
                $pfw_message = "There is a new file uploaded.\n"
                . "-----------------------------------\n"
                . "File Link: $userfile_URL\n"
                . "Name: $Name\n"
                . "E-mail: $E-mail\n"
                . "Comment: $comment\n";
                *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
                header("Location: thankyoupage.html");
                ?>


                Create a folder in your public_html directory, call it "upload" and give it permissions 777.
                Copy the code, paste it in notepad, change youremail@yourdomain.com with the real email in your Vodahost account. If you wish the file size limit different than the 50000 bytes i have put in the script, just change it. Go to Save as, choose File Type: All files, and save it as "upload.php" Upload it in your public_html folder.

                Create two simple pages in BV, one called "errorpage" (for letting them know that the file is bigger than the allowed limit) and the second one "thankyoupage". Publish them. You are done.
                Please note that in the email you will have the file link, so just click on it to openit in your browser. If the file name has blank spaces, then the link will be broken, and you will need to copy the whiole link and paste it in your browser's address bar. If the file is of a type that can't be opened in your browser, just use Blue FTP to download it from your site to your computer and then open it using the appropriate software.
                Hi Dude,

                i am working on a very big project and i need this functionality.
                User should be able to upload videos in the site. I need the complete code for the form as well as script.
                can you please do this favour for me

                Thanks
                Ramesh

                Comment

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #23
                  Re: video/image upload script?

                  Creating he code for the form as wel as the script goes beyond this forum limits. However, i suggest that you create your form in BV, and then download and install Advanced BlueVoda Form Processor which will take care of the submission part and will also deliver the files on your desktop as attached files in your email.
                  Navaldesign
                  Logger Lite: Low Cost, Customizable, multifeatured Login script
                  Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                  DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                  Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                  Comment

                  • rameshdgr8
                    Private

                    • Jul 2007
                    • 3

                    #24
                    Re: video/image upload script?

                    thnx a lot dude. will try the way you suggested and will ping you when if i fall into problem.

                    Comment

                    Working...
                    X