+ Reply to Thread
Results 1 to 21 of 21

Thread: Uploads not being sent to upload folder
      
   

  1. #1
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Uploads not being sent to upload folder

    I made an upload button that sends a file to my /public_html/uploads
    folder, but nothing is showing up there.

    this is the code Im using

    <?php

    // Receiving variables

    @$email = addslashes($_POST['email']);
    @$upload_Name = $_FILES['upload']['name'];
    @$upload_Size = $_FILES['upload']['size'];
    @$upload_Temp = $_FILES['upload']['tmp_name'];


    // Validation for max file size

    if ($upload_Size>0)
    {
    if( $upload_Size >1000)
    {
    //delete file
    unlink($upload_Temp);
    header("Location: error.html");
    exit;
    }
    $uploadFile = "uploads/".$upload_Name ;

    @move_uploaded_file( $upload_Temp , $uploadFile);
    chmod($uploadFile, 0644);
    $upload_URL = "http://www.me3ddd.com/uploads/".$upload_Name ;
    }

    //Sending Email to form owner

    $mailto = "sales@me3ddd.com";
    $mailsubj = "Logo Upload";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Your Logo was uploaded successfully :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    $mailbody .= "upload: $upload_URL\n";
    mail($mailto, $mailsubj, $mailbody, $mailhead);

    header("Location: thankyou_page.html");

    ?>

    I followed everything from the tutorial.

  2. #2
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    Please provide a link to the form page.

    Why don't you simply use ABVFP ? It will upload the files and also attach them in the email that you will recieve.
    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!


  3. #3
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    AVFB form only allows for 1 upload file, How do I edit if I have several upload files?

  4. #4
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    ABVFP allows for UNLIMITED uploads, just the example form that comes with the zip has one. You may add as many as you like. Just add more upload fields in the form.

    As said, this is an example form. You may build your own form, as you like it.
    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!


  5. #5
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    oh...and I also need other elements like drop downs and chk boxes..so this may not be the way to go

  6. #6
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    how do I edit the form..I dont see an option to add elements

  7. #7
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    Quote Originally Posted by willc View Post
    oh...and I also need other elements like drop downs and chk boxes..so this may not be the way to go
    Maybe you have not read carefully the ABVFP features. It will process correctly ANY form, with ANY type of field, including multiple selection dropdowns. In fact, there is no type or number of fields that it can not process.

    The form is made in BV. You can find it under the "BV pages" folder in the zip. Just open it in BV and edit it. Or create your own, as you like it.
    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!


  8. #8
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    George dont I need to edit the uploadaction form to reference the files in the AFPB folder?

  9. #9
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    What do you mean "uploadaction form ?"

    If you use ABVFP you simply create a form as you like it, set it up with ABVFP as per tutorial, and you are done. ABVFP can process an unlimited number of forms, you simply set up each of them in the ABVFP database, as per tutorial. The tutorial is also included in the ABVFP zip.
    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!


  10. #10
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    George Ive completed the form in Voda but how do I enter a hidden field. WHat do I select?

  11. #11
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    Double click the form, and when the Form properties dialog box appears, the bottom part is about hidden fields. Click on Add and then give the hiddeen field the name "Formid" EXCACTLY as you see it here, and as value give it 2 or 3 or whatever is the number that ABVFP cp has given you when you set up the form.
    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!


  12. #12
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    now when I click the submit button the URL shows
    http://www.yourdomain.com/ABVFP/errorpage.php
    with nothing on the page. Where do I find this code?
    I checked my upload form and it has my URL

  13. #13
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    Will, you are not helping me help you. Please provide the form URL so i can have a look at what you have done. And there is NO code that you need to find. Just create your form, publish it, and set it up CORRECTLY using the instructions.
    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!


  14. #14
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    George, I hope this is what your asking for
    http://www.me3ddd.com/uploadform.html

    you snd like Tom Cruise in Jerry McGuire when he tell Cuba Gooding the same thing...

  15. #15
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    Good one.

    However, it seems that you have mistaken some hings:

    1. the email field MUST be Email-Re and not Email-RF
    2. The checkboxes and the position fields have {} at the end. Why ?
    3. Your form submits. However, it then goes to a 404 Page not found error. Almost certainly, you have mistaken the URLs of the thank you page and the error page. If you wish, use myform to send me the pages links as well as your ABVFP username and password and i will fix it for you.
    You will have to edit the mstaken field names yourself as i don't have access to your site
    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!


  16. #16
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    Got confused with those {} which is whats used on Flash actionscript...where do i chg the URL's to point to the right pages....appreciate you doing it for me but if I dont do it myself I wont learn..so how much time do you spend helping us numnuts?

  17. #17
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    When you installed BV you have set a username and a password. At this point, type in your browser: http://www.yourdomain.com/ABVFP and login with your username and paswword. Select, from the next screen, what you want to do. If you have already configured your form, you need to select the form from the dropdown, and then check the "Modify an existing form" radio button.
    In the next screen, fill in the fields correctly with all the necessary details.
    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!


  18. #18
    willc is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    USA
    Posts
    46

    Default Re: Uploads not being sent to upload folder

    George

    The TY page wrks but the load button which is configured in AVFB for max file size is 100k. I loaded a file larger than that but it gave me the TY page instaed of the error page

  19. #19
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    Will, please take the time to read the FULL instructions. The filesize is defined by the user, in KB, in the same setup screen of ABVFP that i mentioned above. Just make it whatever you want..... If you look at the setup fields of ABVFP carefully, you will see that...
    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!


  20. #20
    deanone1 is offline Private
    Join Date
    Jan 2006
    Posts
    2

    Default Re: Uploads not being sent to upload folder

    how do I install ABVFP?

  21. #21
    navaldesign's Avatar
    navaldesign is online now General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Uploads not being sent to upload folder

    If you have downloaded ABVFP zip, there is a Word file with a step by step tutorial. If you have not yet downloaded it, the location is www.dbtechnosystems.com/free_abvfp.php
    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!


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