Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F4637471
file-id.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
431 B
Referenced Files
None
Subscribers
None
file-id.ts
View Options
import
{
Field
,
Context
}
from
"../../../main"
;
export
default
class
FileID
extends
Field
{
typeName
=
"file-id"
;
async
isProperValue
(
context
:
Context
,
new_file_id
:
string
,
old_value
:
string
)
{
const
results
=
await
context
.
app
.
Datastore
.
find
(
"files"
,
{
id
:
new_file_id
,
});
if
(
results
.
length
===
1
)
{
return
Field
.
valid
();
}
else
{
return
Field
.
invalid
(
context
.
app
.
i18n
(
"invalid_file_id"
));
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, May 27, 23:47 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
624883
Default Alt Text
file-id.ts (431 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment