4 | %Persistent
5 | 64090,76829.939948
6 |
7 |
8 |
9 | File name as supplied by user
10 | %String
11 | 1
12 |
13 |
14 |
15 |
16 |
17 |
18 | Directory, where file is stored
19 | %String
20 | 1
21 |
22 |
23 |
24 |
25 |
26 |
27 | Full path to where file is stored
28 | %String
29 | set {*} = {dir} _ {attachmentHASH}
30 | 1
31 | attachmentHASH,dir
32 |
33 |
34 |
35 |
36 |
37 |
38 | Description
39 | %String
40 |
41 |
42 |
43 |
44 |
45 | Attachmentt SHA Hash in Base64
46 | %String
47 |
48 |
49 |
50 |
51 | The file itself (data is stored on disk, it's just a link)
52 | %FileBinaryStream
53 |
54 |
55 |
56 | %New method to
58 | provide notification that a new instance of an object is being created.
59 |
60 | If this method returns an error then the object will not be created.
61 |
It is passed the arguments provided in the %New call.
62 | When customizing this method, override the arguments with whatever variables and types you expect to receive from %New().
63 | For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:
64 |
Method %OnNew(dob as %Date = "", name as %Name = "") as %Status
65 | If instead of returning a %Status code this returns an oref and this oref is a subclass of the current
66 | class then this oref will be the one returned to the caller of %New method.]]>
67 | name:%String="",dir:%String="",description:%String="",stream:%Stream.Object=##class(%FileBinaryStream).%New()
68 | 1
69 | %Status
70 | 1
71 |
82 |
83 |
84 |
85 |
86 | Serve file in web context
87 | %Status
88 |
100 |
101 |
102 |
103 | %Library.CacheStorage
104 | ^Form.FileD
105 | FileDefaultData
106 | ^Form.FileD
107 | ^Form.FileI
108 | ^Form.FileS
109 |
110 |
111 | %%CLASSNAME
112 |
113 |
114 | name
115 |
116 |
117 | description
118 |
119 |
120 | attachmentGUID
121 |
122 |
123 | attachmentHASH
124 |
125 |
126 | stream
127 |
128 |
129 | realName
130 |
131 |
132 | dir
133 |
134 |
135 |
136 |
137 |