|
AMysticWeb -> RE: Uploading Files (9/16/2005 4:13:34)
|
Ok, if I understand, you have a folder for uploads. Is this folder in your web site or is it on your PC. Well no matter. Just for our example, I will assume you have a folder saved to your web. Although I have FP2000-2003, I still use 2000 primarily. Before going further, you could of course do all the following with the site open live e.g. adjust the HTML, create the folder, set compatibility and set the permissions. The following form HTML however was created with FrontPage 2002. In order for the File Upload option to show up, you can go into Tools >> Page Options >> Cpmpatibility and select Either Internet Explorer, Netscape Navigator or both. Although you are using FP 2K, you may need to go into page options and switch to Both IE and NS in order for this to function properly. I imagine in the case, MS limits the upload to this compatibility for good reason ?!? Also, since you aren't using 2002 or 2003, you don't have the option of setting this in form properties. Now I understand why you wanted the HTML info. Duh!
<form method="POST" enctype="multipart/form-data" action="--WEBBOT-SELF--">
<!--webbot bot="FileUpload" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Destination="uploads" S-Category S-Assignedto S-ReviewStatus B-Process-MetaInfo="FALSE" S-Builtin-Fields -->
<p> Name
<input type="text" name="name" size="20"></p>
<p>Email <input type="text" name="email" size="20"></p>
<p>Upload your picture <input type="file" name="uoload_file" size="20"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
So, in this instance, I named the folder uploads as you indicated, and named the field upload_file The code pertaining to the file upload field and process are in bold. Keep in mind, although you can publish your form with FrontPage, the server must be Windows and the 2002 extensions are necessary in order for this to work properly. So, publish your form , making sure the folder is published as well. Store the folder in the root web same as _private, images etc. Now test it. It should ask for user and password. Then you may need to open live and set the folder permissions. Yes I get long winded. Either way you approach this, I would recommend immediately if not sooner: Publish to file when you are done and make a backup copy. PS if you get things working, let us know how you did it so others might benefit.
|
|
|
|