forked from zamronypj/fano
/
UploadedFileFactoryIntf.pas
50 lines (40 loc) · 1.4 KB
/
UploadedFileFactoryIntf.pas
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit UploadedFileFactoryIntf;
interface
{$MODE OBJFPC}
{$H+}
uses
UploadedFileIntf;
type
(*!------------------------------------------------
* interface for any class having capability create
* instance of IUploadedFileCollection
*
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
*-----------------------------------------------*)
IUploadedFileFactory = interface
['{3616D812-7ECF-4CFF-9C8D-E5E167B67EA7}']
(*!----------------------------------------
* create instance of IUploadedFile
*-----------------------------------------
* @param content content of uploaded file
* @param contentType content type of uploaded file
* @param origFilename original filename as uploaded by user
*-----------------------------------------
* We will create temporary file to hold uploaded
* file content.
*-----------------------------------------*)
function createUploadedFile(
const content : string;
const contentType : string;
const origFilename : string
) : IUploadedFile;
end;
implementation
end.