forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUploadFile.cs
More file actions
29 lines (24 loc) · 857 Bytes
/
UploadFile.cs
File metadata and controls
29 lines (24 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.IO;
namespace ServiceStack
{
public class UploadFile
{
public string FileName { get; set; }
public Stream Stream { get; set; }
public string FieldName { get; set; }
public string ContentType { get; set; }
public UploadFile(Stream stream)
: this(null, stream, null, null) {}
public UploadFile(string fileName, Stream stream)
: this(fileName, stream, null, null) {}
public UploadFile(string fileName, Stream stream, string fieldName)
: this(fileName, stream, fieldName, null) {}
public UploadFile(string fileName, Stream stream, string fieldName, string contentType)
{
FileName = fileName;
Stream = stream;
FieldName = fieldName;
ContentType = contentType;
}
}
}