|
<snip> > Also, is there a way to browse to Windows to "attach" scanned documents? > Ideally what I'd probably want to do is do a browse, open up a Windows > dialog box to search for a file ,then when selected copy it to the IFS where > I could then reference it later from a web page via my CGI programs. So you want the user to have a browse button on the web page, and when he clicks it, it'll give him a file dialog and let him pick a file? That's simple HTML tag. <input type="File"> Again, I suggest multipart/form-data for this since IMHO it just works better with file uploads. URL encoding the entire file seems kinda silly. Make sure you use POST, or you'll run into the size limit of GET very quickly. <snip> You actually *need* to use multipart/form-data. Here's an example form: <html> <head> <title>Upcoming Editions Upload</title> </title> <body> <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="upload"> List ID <INPUT TYPE="TEXT" NAME="listid" VALUE=""><br> Notification email address <input type="text" name="email"><br> Upcoming Edtions Spreadsheet<INPUT TYPE="FILE" NAME="spreadsheet"><br> Upcoming Edtions PDF<INPUT TYPE="FILE" NAME="pdf"><p> <INPUT TYPE="submit" name="Action" value="Upload Files"> </FORM> </body> </html> Note that this changes how you get the values. Instead of name/value pairs, you end up with named parts for each item in the form. I have no idea if the CGI API's handle this for you or not but Net.Data does a good job of handling this. Net.Data isn't flexible in where you can place the file (one can only define one place in the IFS for it) but it does give you a reference to the file that you can then pass off to a program to do whatever you want with the file. You can also handle file uploads with Java but there's a lot more involved to do it. Matt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.