Using the File Upload Web Control

Building the UI

The File Upload Web Control, unlike other Web Controls, doesn't have a default appearance. When it is first added to a Web Page, it will appear in the Stage as follows:

organizing infoorganizing info

Other Web Controls can then be nested inside the File Upload Web Control in the same ways they might be added to any other Container:

organizing infoorganizing info

They can also be styled like nested Web Controls in any other Container

Once a Web Control has been made a nested component of the File Upload Control, clicking on it will generally result in a prompt to select an item for upload, after which downstream Events associated with the File Upload Control will be triggered.

A note on which Web Controls to use as component parts

As discussed above, after a Web Control has been made a nested component of the File Upload Control, clicking on it will generally result in a prompt to select an item for upload. However, there are some Web Controls, such as Buttons and Input Boxes, that are structured around supporting particular user interactions, and these interactions will take precedence over uploading a file.

It is possible, for instance, to include a Button as part of a File Upload Web Control and associate clicking that button with an Action Chain. A user that clicks that Button, then, would not be prompted to select an item for upload and would instead trigger the Action Chain associated with the Button.

To ensure that the functionality of a File Upload Web Control will always be accessible to users, we recommend including at least one Label in every File Upload Web Control (perhaps on that says something like "+ New File"). Labels are not designed to facilitate any user interaction other than reading, and so they do not contain the framework of anything that might override the functionality of the File Upload Web Control.

Examples and Discussion

For a deeper dive into how to apply the File Upload Web Control, check out the following video. It discusses how to create progress bars, display thumbnails, and store any number of files uploaded to the same Control:


Did this page help you?