HtmlUpload
Takes seven parameters, Location, Mode, Prompt, Path, Class, Name, HelpText
Usage:
Location, Mode, Prompt, Path, Class, Name, HelpText
Location, Mode, Prompt, Path, Class, Name, [""]
Location, Mode, Prompt, Path, Class, ["UploadFile"], [""]
Location, Mode, Prompt, Path, [""], ["UploadFile"], [""]
Location, Mode, Prompt, [""], [""], ["UploadFile"], [""]
Location, ["Append"], Prompt, [""], [""], ["UploadFile"], [""]
["Runtime"], ["Append"], Prompt, [""], [""], ["UploadFile"], [""]
["Runtime"], ["Append"], ["Upload File"], [""], [""], ["UploadFile"], [""]
Description:
Places an HTML Form element which allows users to upload a file to our server.
- Location - The form will be inserted into the Template at the Location specified (see your Template itself to see what names exist in it) using one of the three Modes.
- Mode - Append, Replace, Prepend
- Prompt - The text displayed to the user on the upload button. Leave blank for "Upload File"
- Path - The URL the form will be submitted to. Leave blank for the browser to use the current path
- Class - The class to be assigned to the HTML Input element. Optionally, one or more specific elements may be listed in the syntax of "element1='value1' element2='value2'". The available elements are: input, form, div, label, button, help. The button element has support for Moxie.Build's & notation for Bootstrap classes.
- Name - Used to distinguish between multiple file upload forms on the same page, if this field is left blank, the default "UploadFile" name will be given
- HelpText - Additional information to be displayed to the user with the Bootstrap help text classes applied.
Example:
'Place upload form
HtmlUpload "", "", "Upload File", ("?Upload=" & pTest), "", "FileUpload", "Please browse your computer to select a photo"