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.gcompand place it in your Web Application project directory. -
In LabVIEW NXG, include the
Download Upload Library.gcompin the project pane. From your block diagram you will now have access toDownload a File VIandUpload a File VI.
-
Drop a control on the front panel (for example a button) and in the configuration pane set the
HTML class attributeto a custom class, for examplemy-upload-button. -
On the block diagram drop an
Upload a File VIand into the selector terminal pass in the class name modified as a CSS selector. For example, the class namemy-upload-buttonwould become the selector string.my-upload-button. Notice the.prefix at the start of the class name.

