Forum Moderators: open

Message Too Old, No Replies

Adding file upload field in FP2000 form

any idea how to do this?

         

spaciba

7:50 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



Hi all,

does anyone know how i might be able to go about adding a file upload field to an email form i'm using in a FP 2000 web? I'm trying to design it so that visitors can type in their name, email etc and then browse their hard drive to attach a doc to the form. I know FP2002 has a web bot for this, but how can i go about adding it while using 2000?

Any help would be immensely appreciated!

thanks :-)

kelly

brotherhood of LAN

8:06 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



spaciba, if you go to the "insert" option up at the top and under "form" there is the file upload option.

I used it agess ago, but AFAIK, its just am atter of you putting the form in and uploading it to your server and itll work "as is".

spaciba

8:55 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



thanks for the response :-)

I checked that out and there does not appear to be a file upload option from the insert menu. I'm able to put together a form where a user could copy and paste text into a text field, but what I would like to have is a browse / add attachment field that will enable the user to search his or her computer, select the document and attach it to the form. Then, the document would come as an attachment appended to the rest of the info I had collected from the form.

If I use the code from FP 2002 that creates this webbot would it work in a web made using FP 2000 providing my host supports FP 2002 extensions? Or is there an easier way to accomplish this?

thanks again :)

brotherhood of LAN

9:10 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



ahh of course, you said FP2000, for a minute i thought that was the most recent version.

the file upload form is the same code with or without FP

<form method="POST" enctype="multipart/form-data" action="--WEBBOT-SELF--">
<!--webbot bot="FileUpload" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><p><input type="file" name="F1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

thats just a cut and paste from FP, "multipart/form-data" is used for a form involving files.

You could try using it by copying it on to your server, I am not entirely sure if your older version of FP will affect the functionality of the code.

pageoneresults

9:13 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You may also end up dealing with server permissions with your host. I tested this feature in FP 2002 a while back and it never really worked the way I wanted it to. It is a very basic file upload component and I think you'll find using an asp based upload component will provide more functionality and usability.

spaciba

9:53 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



thanks a bunch guys,

any idea where i might be able to find this alternate asp based upload component?

thanks again :)

brotherhood of LAN

9:59 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



spaciba,

have a blast at searching google for "asp upload form", it looks like you have a good choice from the ones on offer.

or learn php IMO ;)

pageoneresults

10:00 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A search in your favorite SE should present the information you are looking for.

asp file upload
asp file upload component

spaciba

10:27 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



thanks a million guys! :)