Page MenuHomeSealhub

multiple-files.ts
No OneTemporary

multiple-files.ts

import { Context } from "koa";
import { FieldTypes as SealiousFieldTypes } from "sealious";
import { FormField } from "./field";
export class MultipleFiles extends FormField<false> {
constructor(
public collection_field: SealiousFieldTypes.ReverseSingleReference,
public getItemId: (ctx: Context) => Promise<string> | string
) {
super(false);
}
getEmptyValue() {
return undefined;
}
async parse() {
return <const>{ parsed_value: undefined, parsable: true, error: null }; // the control is supposed to do the heavy lifting here
}
}

File Metadata

Mime Type
text/x-java
Expires
Wed, May 7, 19:42 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
634909
Default Alt Text
multiple-files.ts (551 B)

Event Timeline