IUploadRsp Interface

The IUploadRsp interface is used to interact with specific Upload response parameters contained in the in-process COM Server Upload response component, which is returned when the Upload command is invoked. This interface provides methods which enable the client application to obtain the filename, path location, MIME type, and size (number of bytes) of the uploaded object store item.

Client applications may also interact with the Upload response component via the IAppIntRsp interface. For more information about working with command and response components and their COM interfaces, see Command and Response components.

COM Class ID

coclass UploadRsp {
[default] interface IUploadRsp;
interface IAppIntRsp;
};

Reference

DLL FnAppIntUploadCmd.dll
See Also IUploadCmd Interface

Methods

The IUploadRsp interface defines the following methods:

Method Description
GetContentSize

Returns the size (number of bytes) of the upoaded object store item.

GetFilePathName

Returns the filename and path location on the local machine, of the uploaded object store item.

GetMimeType

Returns the MIME type of the uploaded object store item.

Example

The following is a fragment from the complete example for the Upload command.

   ...
   // Obtain the specific response information contained in the custom UploadRsp component
   IUploadRspPtr spIUploadRsp(spIAppIntRsp);
_ASSERTE(spIUploadRsp != 0);
std::cout << "PathName=" << (LPCSTR) spIUploadRsp->GetFilePathName() << std::endl; std::cout << "MimeType=" << (LPCSTR) spIUploadRsp->GetMimeType() << std::endl;
std::cout << "ContentSize=" << spIUploadRsp->GetContentSize() << " bytes" << std::endl; ...