![]() Watch the Uploading and Downloading Files with a Web App video. To start the download, you call ShowURL and pass in the URL of the WebFile that you created.Įxamine the WebFileUploader example project (Examples/API/User Interface/Web) that shows you how to upload files to a web app.Įxamine the Downloading example project (Examples/Topics/Web/Downloading Files) that shows you how to download files from a web app. You then want to set the WebFile.ForceDownload property to True so that the file is downloaded rather than displayed in the browser. This WebFile should be a Property of the WebPage so that it does not go out of scope while the file is downloading, which would cause an incomplete download. To make a file available for download, you first have to create a WebFile that refers to the file on the drive. When the upload has finished, the :ref:UploadFinished`` event handler is called where you can get a list of the files that were uploaded so that you can process them as necessary. You then add a button to the page that calls the WebFileUploader.StartUpload method on the control to actually upload the files to your web app on the server. This control provides a user interface for the user to select and add files to a list to be uploaded. ![]() To allow users to upload files to you web app, you use the WebFileUploader control. How do I upload and download files in a web app?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |