IHttpFile Interface
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

IHttpFile Interface 

This interface provides read-only access to information for a file that has been uploaded to the server.


__interface IHttpFile

This interface is implemented by CHttpRequestFile.

Header: atlsiface.h

[ tag_name(name="PrintFileInfo") ]
HTTP_CODE OnPrintFileInfo(void)
{
    POSITION pos = m_HttpRequest.m_Files.GetStartPosition();
    while (pos != NULL)
    {
        IHttpFile* pFile = m_HttpRequest.m_Files.GetNextValue(pos);
        m_HttpResponse 
            << "Uploaded file name : "
            << pFile->GetFileName()
            << "<br>Full uploaded file name : "
            << pFile->GetFullFileName()
            << "<br>Temporary file name : "
            << pFile->GetTempFileName()
            << "<br>Content-Type : "
            << pFile->GetContentType()
            << "<br>File Size : "
            << pFile->GetFileSize()
            << "<br>Parameter name : "
            << pFile->GetParamName()
            << "<hr>";
    }

    return HTTP_SUCCESS;
}
Show:
© 2016 Microsoft