Note: The File for WebVI library is a file handling library for WebVIs that supports uploading and downloading of binary and text files, webcam image capturing, base64 encoding / decoding, etc.
New projects should consider using the File for WebVI library instead.
Library to upload or download a text file to and from a LabVIEW NXG WebVI.
-
Download the
Download Upload Library.gcomp
and place it in your Web Application project directory. -
In LabVIEW NXG, include the
Download Upload Library.gcomp
in the project pane. From your block diagram you will now have access toDownload a File VI
andUpload a File VI
.
-
Drop a control on the front panel (for example a button) and in the configuration pane set the
HTML class attribute
to a custom class, for examplemy-upload-button
. -
On the block diagram drop an
Upload a File VI
and into the selector terminal pass in the class name modified as a CSS selector. For example, the class namemy-upload-button
would become the selector string.my-upload-button
. Notice the.
prefix at the start of the class name.