Namespace: Consultingwerk.Web2.Services.FileUpload
Class 
FileUploadResult Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Web2.Services.FileUpload.IFileUploadResult

Purpose: Context/identifier about the request used to upload these files.
Notes: Typically <http-method>:<relative-url> ; might be a header value



Top Method Summary
Options Name Purpose
+ AddFile (character, character, IMemptrHolder) Adds a single file to this object's arrays
+ AddFile (character, IMemptrHolder) Adds a single file to this object's arrays
+ LOGICAL SetContext (Object) Sets the context for the upload

Top Constructor Summary
Options Name Purpose
+ FileUploadResult (character) Constructor for the FileUploadResult class

Top Property Summary
Options Name Purpose
+ Progress.Json.ObjectModel.JsonConstruct Context
+ Ccs.Common.Support.IMemptrHolder FileData
+ CHARACTER FileName
+ CHARACTER FileType
+ CHARACTER Request


Method Detail
Top

PUBLIC AddFile (character, character, IMemptrHolder)

Purpose: Adds a single file to this object's arrays
Notes: The file name and type may be empty

Parameters:
pcName CHARACTER
The file name.
pcFileType CHARACTER
The MIME type of the file.
poData Ccs.Common.Support.IMemptrHolder
The binary file contents. Mandatory.
Top

PUBLIC AddFile (character, IMemptrHolder)

Purpose: Adds a single file to this object's arrays
Notes:

Parameters:
pcName CHARACTER
The file name.
poData Ccs.Common.Support.IMemptrHolder
The binary file contents
Top

PUBLIC LOGICAL SetContext (Object)

Purpose: Sets the context for the upload
Notes: If the context object is JSON, then use the input object.
If the context object is IMemptrHolder, then save that data as
a "context" property in a new JSON object
In all other types, create a JSON object from the object's properties.
the value is being set for the first time.

Parameters:
poContext Progress.Lang.Object
The context data
Returns LOGICAL
TRUE if the value passed in overwrites a value; FALSE if


Constructor Detail
Top

PUBLIC FileUploadResult (character)

Purpose: Constructor for the FileUploadResult class
Notes:

Parameters:
pcRequest CHARACTER
The request context/identifier


Property Detail
Top

PUBLIC Progress.Json.ObjectModel.JsonConstruct Context


Returns Progress.Json.ObjectModel.JsonConstruct
Top

PUBLIC Ccs.Common.Support.IMemptrHolder FileData


Returns Ccs.Common.Support.IMemptrHolder
Top

PUBLIC CHARACTER FileName


Returns CHARACTER
Top

PUBLIC CHARACTER FileType


Returns CHARACTER
Top

PUBLIC CHARACTER Request


Returns CHARACTER


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:17:30