Class: cWebFileUploadForm
Properties | Events | Methods | Index of Classes
Web Framework form class with a prompt button that pops up a file selection dialog when clicked and allows for uploading selected files
Hierarchy
cObject > cWebBaseObject > cWebObject > cWebBaseUIObject > cWebBaseDEOServer > cWebBaseControl > cWebBaseFileUpload > cWebFileUploadForm
Show full hierarchy and direct subclasses
- cObject
- cWebBaseObject
- cWebObject
- cWebBaseUIObject
- cWebBaseDEOServer
- cWebBaseControl
- cWebBaseFileUpload
- cWebFileUploadForm
Library: Web Application Class Library
Package: cWebFileUploadForm.pkg
Description
This control represents a single form that is displayed as a form. The prompt button will open the file selection dialog and allow the user to select a file.

Once the file is selected, the control will start uploading the file (or wait until the StartUpload procedure is called). While uploading, the control transforms into a progress bar showing the progress (or a spinning wheel for older browsers).
After the upload is finished, the control will display details of the uploaded file.
For security reasons, the upload folder needs to be registered as an accessible upload folder for every process using RegisterUploadFolder.
Browser Drag & Drop
Modern browser support files to be dropped onto the browser window. The cWebFileUploadButton and cWebFileUploadForm controls both support this and the drop zone is configurable using the phoDropZone property. It defaults to the control itself, but it can be set to panels, views or even the entire web app to extend the drop zone.
Drag and Drop Support
This control can be used as a valid drop target by registering it as such in a cWebDragDropHelper object.
The supported actions for this control are: - C_WebDropOnControl
This allows the control to accept data dragged from elsewhere in the control (if configured that way) and can also be used to accept files when registered within a cWebDragDropFileHelper.