Article Preview
Buy Now
COLUMN
WebFileUploader
Uploading user files with a web app
Issue: 10.3 (March/April 2012)
Author: Paul Lefebvre
Author Bio: Paul Lefebvre is the Real Software Developer Evangelist. He has been using Real Studio for over 10 years.
Article Description: No description available.
Article Length (in bytes): 3,872
Starting Page Number: 73
Article Number: 10312
Resource File(s):
project 10312.zip Updated: 2012-03-01 00:42:27
Related Link(s): None
Excerpt of article text...
Real Studio Web Edition has a built in control that makes it easy for your users to upload files to your web application. This month we will take a look at the WebFileUploader control class.
Setup
To get started, create a new Web project and drag a FileUploader onto the default page (changing its name to PictureUploader).
FileUploader has built-in functionality to allow the user to select files to upload. The user clicks the"+" button to add a file to the list. The "-" button can be used to remove files that have been previously added to the list. Try running the project and playing with the buttons so you can see how they work.
Since we only want the user to upload pictures, we can restrict this using the FileAdded event:
...End of Excerpt. Please purchase the magazine to read the full article.