HttpPostedFile
Wisej.Core.HttpPostedFile
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.5.0.0)
Provides access to individual files that have been uploaded by a client.
Properties
ContentLength
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
Int64: Returns the size of an uploaded file, in bytes.
ContentType
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
String: Returns the MIME content type of a file sent by a client.
FileName
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
String: Return the fully qualified name of the file on the client.
InputStream
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
Stream: Returns a Stream object that points to an uploaded file to prepare for reading the contents of the file.
LastModified
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
DateTime: Returns the last modified DateTime of the file.
Methods
SaveAs(filename)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
Saves the contents of an uploaded file.
Parameter | Type | Description |
---|---|---|
filename | The name of the file. |
Last updated