The file_upload part allows your application users to upload images, documents, audios, videos, and other file types. You can use this to upload files of various file types to the server. When the system stores the file it also saves the returned variables in a data object, which you can use in your application in subsequent processing steps.
|Caption||This specifies the caption that the system should show with the upload control.||Text||Optional|
|Show Feedback||If you check this checkbox the system will display warning or success messages to your application users when they upload a file. If you leave this checkbox empty the system will not display validation messages.||Checkbox||Optional|
|Default File Name||This is the file name that the system will apply to the file when it is uploaded. When this is left blank the system stores the file using its original name.||Text||Optional|
|Directory (<v7.3)||This is the location to which the system uploads file(s).||Text||Mandatory|
|Place file in temp-folder (<v7.3)||When this option is checked the system uploads the files to the \temp folder in the dat folder of your LogicNets installation.||Checkbox||Optional|
|Sub folder (v7.3 and Higher)||This option becomes available when the storage location is set to '(local) \appdata' or '(local) \temp'. It allows you to specify the subfolder within the given directory to which the system must upload file(s).||Text||Optional|
|(whitelisted) Path (v7.3 and Higher)||This option becomes available when the storage location is set to 'external directory'. It allows you to specify the path to the external directory.
Note that you must whitelist external directories in the settings.cfg file before the system will allow the file to be uploaded. See Whitelisting Directories for more information.
|Storage location (v7.3 and Higher)||This indicates the location in which the system will store an uploaded file.
|Unique File Name||If you set this to 1, the system will append a time stamp to the front of the file name to make the uploaded file name unique. This prevents the file from being overwritten by a later version.||Number||Optional|
|Result||This is the data object in which the resulting information from the upload action is stored. It includes the following fields: status, feedback message, uploaded file name, upload target, original file name, time stamp, and extension.||Text||Optional|
|Upload Button Caption||This is the title the system will display to the user on the document upload button. If you leave this field empty the system will use the default of "Upload".||Text||Optional|
|Success Message||This is the message the system displays when a file is successfully uploaded. The system will only display message if you checked the Show Feedback checkbox. If you click the Show Feedback checkbox but do not enter a message in the Success Message field the system will use the default message "Successfully uploaded the file." and append the name of the uploaded files after a colon.||Text||Optional|
|Cannot Open File Message||This is the message the system displays to the user if the system cannot open the uploaded file. The Show Feedback function must be active for the system to display the message. If Show Feedback is active and you do not enter a message in this field the system will display the default message "Cannot open output file: [name of the file]".||Text||Optional|
|No File Name or Extension Message||This is the message the system displays to the user if the system cannot find the filename or extension. The Show Feedback function must be active for the system to display the message. If it is active and you do not enter a message in this field the system will display the default message "No filename or extension found".||Text||Optional|
|Accepted File Extension(s)||This feature allows you to specify the file types the end-user can upload; for example, enter image/* in this field to allow all types of image files or image .jpg to specify that the system only allow the end-user to upload .jpg files. If you want to include more than one file type, include a comma-separated list of unique file type specifiers. If you leave this field blank the system will allow users to attach all file types during the upload process.
Click here for a link to accepted file extensions.
|Allow multiple files||If you check this checkbox the system will enable multiple file upload functionality and users will be able to select and upload multiple files at once.||Checkbox||Optional|
|Submit on click||If you check this checkbox the system will advance the user forward one node after completing the upload.||Checkbox||Optional|
Download and import the following example project in your workspace.