Results 1 to 24 of 24

Thread: uploading file forms
      
   

  1. #1
    JMKluss is offline Staff Sergeant
    Join Date
    Aug 2008
    Posts
    40

    Default uploading file forms

    hello,

    i have built a form where part of it is to upload a file and i was jusrt checking on which encoding to have it on, simple text form data or multi form etc?

    thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    David meant multipart / form data

    Goodmorning David.
    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!


  4. #4
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default Re: uploading file forms

    You are quite right, thats what I meant.........

    Good evening George.......had to dash out this morning.

  5. #5
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Question Re: uploading file forms

    Like JMKluss, I've created a BV page with a form that allows the user to upload a file. I've tested it four times and each time I fill out the form and hit Submit, I immediately get the 'success' page that I should.

    And when I go to the e-mail address where the message should have gone, the message is all there EXCEPT the e-mail has no attachment containing the uploaded file.

    The form was created using the regular "Form" button in BV (not the Form Wizard) and I have the encoding type set to multipart/form-data.
    What do I need to do to make the uploaded file appear as an attachment to the e-mail that provides the rest of the data submitted from the form? ***THANK YOU***

  6. #6
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

  7. #7
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Question Re: uploading file forms

    Thanks, D & L . . . I added the link-to-the-page to my original post just after posting it. By the way (second question), do you know how to prevent search engines from picking up these forum pages based on a "live" link that I've listed here? Thanks.

  8. #8
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default Re: uploading file forms

    If you dont want the se's to pick up your link, dont post it again.

    Off to check your form now to see if I can help......

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

    Default Re: uploading file forms

    The built in BV form processor does NOT send the uploaded files as attachments. It uploads them on your site, and includes a link in the email, for you to download or open (in case of images or PDFs)
    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
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default Re: uploading file forms

    How and with what did you create this form??

    <form name="Job Applicant Message" method="POST" action="jobthankyou.php" enctype="multipart/form-data" id="Form2" onsubmit="return ValidateJob Applicant Message(this)">

    <input type="file" id="FileUpload1" style="position:absolute;left:69px;top:368px;width :363px;height:23px;z-index:12" size="40" name="Resume">

  11. #11
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Question Re: uploading file forms

    To create this form, I copied a form I had created on another BV page and pasted it onto this page, then edited it. The original form was created using the "Form" button--the one at the opposite end of the forms toolbar from the Forms Wizard button.

    Naval, thanks for speaking up, but I'm confused: every time I've tested this newer form (which I've confirmed is encoded in multipart/form-data), including twice in the past hour, the e-mail I get has no link to any uploaded document. However, when I set the encoding to "application/x-www-form-urlencoded" the e-mail I get from testing the form includes the location on my computer of the document I uploaded (C:\\Documents and Settings\\Jim\\My Documents . . .).

    I must be doing something wrong, but I have no idea what. I wish this kind of thing were covered in a tutorial I could watch (would save both of us some time).

  12. #12
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    Jim,

    are you using the latest BV version ? and have you used the built in form processor ?

    If you have, it is impossible that you don't receive the link to the file location on the server. The encoding type MUST be multipart / form data, or the file will NOT be uploaded.

    If, instead, you are usingthe OLD script that was posted in te forum till June 2008, it can NOT upload files.

    Use the latest version of BV. The form is ok. Double click the form and check the "Use Built in form processor", save, publish and refresh.

    The age MUST (if you use the built in form processor) be published as php. If it was html, also change the links in your menus.

    Last, REMOVE the script from your "jobthankyou" page, it will create blank emails if you use the built in form processor.
    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!


  13. #13
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Question Re: uploading file forms

    When I go to my PC's Start button > Control Panel > Add or Remove Programs, it says I have BlueVoda Website Builder 10.0C. Is this the latest version? If it's not, can you please e-mail me a link to where I can download the latest . . . because I looked all around the Vodatalk forum, and went to the VH home page, and could not find anything about downloading the latest.

    Regarding the "Use Built-in form processor" item that I need to check: Is that only in the latest version of BV? Because I don't see it when I double-click my form now (in 10.0C).

    And when you say delete the script on 'jobthankyou' I assume you mean ONLY delete the following, which I have in the Inside Body Tag section:

    <script language="php">
    $email = $HTTP_POST_VARS[email];
    $mailto = "jimchicago@sbcglobal.net";
    $mailsubj = "Job Applicant message from Salon Hype web site";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
    if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
    </script>

    Thanks, Naval!

    >>> THANK YOU <<<

  14. #14
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    Hi Jim,

    No this is not the latest version. This one could NOT uppload files. That's why you have issues.

    Yes, i mean deleting this part that you posted.

    Link: http://www.vodasupport.com/index.php...wnloaditemid=1
    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!


  15. #15
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Question Re: uploading file forms

    I'm going nuts trying to make this form work in BV 10.2. Here's what I've done:

    1. Downloaded and installed the newest version of BV (ver 10.2)
    2. Went into page properties (for the 'employment' page) and set the file extension to 'php'
    3. Double-clicked the form, checked the box for 'Use built-in PHP form processor' and
    4. Made sure the encoding type is multipart/form-data
    5. On the jobthankyou page, deleted the script from the Inside Body Tag section
    6. Also on jobthankyou, set the file extension to 'php'

    I did all of these steps except #5 (I think that's the only one I'd skipped) and then tested the form. As before, the info submitted thru the form came to me in an e-mail, but WITHOUT a link to the uploaded document.

    After doing #5, I'm getting NO e-mail after testing the form.

    I notice that even though I have the file extension as .php for both pages (and I published both multiple times after doing so), the employment page comes up in my browser as a .html (and won't display as a .php) file.

    Does it matter that I don't have anything filled in for "Error URL" in the Form Properties (because I haven't published an Error page)?

  16. #16
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    A link to the form please ?
    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!


  17. #17
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Default Re: uploading file forms

    It's at http://www.salonhype.com/employment.html

    Is it strange (to you) that this page displays in a browser with the .html extension when I have set the extension in Page Properties to .php?

  18. #18
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    No it is not strange. You have published it as php BUT you have still left, in your menu, the link as html so the menu is sending you to the old page (html). The new page is there but strangely it will NOT open because you have some error in the code. Errors in the code are (almost) impossible for the standard code of the built in form processor, so i can only suppose that you have included some strange symbol in your mail Subject or email address. Check 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!


  19. #19
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Question Re: uploading file forms

    Instead of trying to hunt down and correct the error in the code that you mention, maybe I should just delete these two pages and start from scratch using BV 10.2's built-in form processor. What do you think?

    I bet the error resulted from me creating this form in 10.0C and then trying to migrate it over to 10.2's built-in form processor. Thanks for all your help on this.

  20. #20
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    No. ANY form built previously can by edited in BV10.12 and it becomes as originally built with the current version.
    I asume that you have something wrong in the settings. Did you watch the Form Wizard Tutorial ?

    Anyway, if you wish send me your form, i will have a look. Use (if you wish) my contact 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!


  21. #21
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Thumbs up Re: uploading file forms

    Good news--I finally have a form that provides info from editboxes and a combobox, AND gives me a link to the file that the user uploaded. I did it by creating a whole new form in the Form Wizard (not that I doubt what you say about the ability to migrate "old" forms into the new form system): It's at http://www.salonhype.com/employment.php.

    Just one (minor) problem remains: The e-mails I'm getting from the form show MY e-mail address (the one I listed in the General tab of Form Properties) in both the "From" column of my inbox and in the e-mail header. Shouldn't it be showing the e-mail address that the user entered in the form?

    Two other questions:
    1. How do I specify the maximum file size that may be uploaded thru the form?
    2. Does the 'Error URL' that I list in Form Properties have to have a .php extension?

    Oh, I also just noticed: My form's combobox allows me to select more than one option (by holding Ctrl while clicking options) but only the last option selected appears in the e-mail I get.

  22. #22
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    Hi Kim,

    1. The email field is NOT named email but E-mail_Address . Rename it.
    2. Please look at the Form wizard tutorial, there are ILLUSTRATED instructions on how to set the filesize.
    3. No, the error page doesn't need to be php. This is ALSO described in the Form Wizard Tutorial.

    Save, Publish and Refresh your browser before testing.
    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!


  23. #23
    Join Date
    Aug 2006
    Location
    Chicago suburbs
    Posts
    304

    Thumbs up Re: uploading file forms

    Thanks, Naval . . . I should have read the text down below the tutorial video. My form is working fine now, although the e-mails I get still don't show more than one item selected in the combobox, even though I have that box set to allow multiple selections (and it appears to take them if you Ctrl-click them).

    I also got your friend request. I received another one from someone else a week or two ago. Every time I try to accept these requests, it says I'm not authorized to accept or something like that, even when I'm logged into the forum. What am I doing wrong?

  24. #24
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: uploading file forms

    Multiple Choice: add square brackets at the end of the field name. Example "selections[]"

    Friendship Request ? hm... I didn't send one (???)
    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