To continue with this content, please log in with your Data Access ID or create a new account.
Cancel Data Access ID
You may not be authorized to see this content. Please contact Data Access Europe for more information.
Cancel Data Access Europe
You are not authorized to see this content.
Cancel Data Access Europe
Next lesson:
cWebForm
Cancel

Getting to know the Web Controls

Lesson 19 - cWebFileUploadButton


In this lesson we will take a look at the WebFileUploadButton control. The WebFileUploadButton is a button that opens a file selection windowenabling the user to upload files to the server and utilize them at a later time. This is particularly useful for tasks such as adding pictures. 


DEMONSTRATION

  • We have made a new view in the WebOrderMobile Example 
  •  When you want to implement the WebFileUploadButtonyou can drag it from the class palette or code it yourself

  • As you can seethe "OnFileUploadfunction is automatically generated. 

  • Keep in mind that you need to register the upload folder. 
  • By default, the "Uploads" folder in the "Data" directory is registered, but if you want to use a different folder, you need to register it. 

  •  Nowlet's look at the button. As you can seethere is now a button in the view. 
  • If we click ityou'll notice that the file explorer opens

  • You can select any file you want, and it will be uploaded to the "Upload" directory.