Steve,
Here is the form you need to find the file and submit it w/ a description:
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
[HTML>
[HEAD>
[TITLE>Get File<[TITLE>
[/HEAD>
[body background="images/bg.jpg">
[br>
[h3>Save Picture</h3>
[FORM ENCTYPE="multipart/form-data" METHOD=POST
ACTION="<@CGI><@APPFILE>?_function=write_file&<@userreferenceargument>">
[br>
User id: [input type=text value="<@arg userid>" name="userid"
readonly><br><br>
[b>Biography:[/b>[br>
[TEXTAREA ROWS=5 COLS=60 WRAP=VIRTUAL NAME="description">
[/TEXTAREA>
[br>[br>
[b>Picture File Name:</b> <INPUT TYPE=FILE SIZE=40 NAME="filename"
ACCEPT="IMAGE/*">
[P>
[INPUT TYPE=SUBMIT NAME="submit" VALUE="Save">
[INPUT TYPE=RESET VALUE=Reset>
[/FORM>
[FORM name=back>
[INPUT TYPE=button naME="back_button" value="Back" OnClick="history.go(-1)">
[/FORM>
[/body>
[/HTML>
When you submit this to the write_file, you insert a row into your table,
select the id number for that row out and use the file write action to put
your file wherever you want it using the id number from the table.
Troy Sosamon
===== Original Message from [EMAIL PROTECTED] at 5/15/02 12:28 pm
>Hi,
>
>First project in R:Tango. Again thanks for all the help in the past.
>
>I want to give the user the ability to download jpg files to my server
>within a taf file. My strategy is to store the file name in the database and
>the actual file in another directory on the server. Later on using a taf
>search I want to display the image using the file name from the database.
>
>In the taf file, I have used the following statement to allow the user to
>browse his own computer to select the file he wishes to download and this
>file name is then placed in the input field L_Image. The TYPE=FILE presents
>a "Browse" button to select a file from the local computer.
>
><INPUT NAME="L_Image" TYPE=FILE SIZE=20 MAXLENGTH=20 VALUE="<@COLUMN
>"Listings.L_Image">">
>
>I imagine I will have to parse the file string L_Image to be just the file
>only and then copy the file to the appropriate folder on the web server.
>
>Has anyone done this and would have some parsing code to share?
>
>Also need some code to copy the file from the local computer to the web
>server.
>
>Appreciate any help or direction.
>
>Thanks
>
>Steve Fogelson
>Internet Commerce Solutions
>
>================================================
>TO SEE MESSAGE POSTING GUIDELINES:
>Send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: INTRO rbase-l
>================================================
>TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: UNSUBSCRIBE rbase-l
>================================================
>TO SEARCH ARCHIVES:
>http://www.mail-archive.com/rbase-l%40sonetmail.com/
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/