Skip to main content

FileBinaryParameters

@webda/fs


Class: FileBinaryParameters

Defined in: fs/src/filebinary.service.ts:47

Configuration parameters for the filesystem-backed binary storage service.

Extends​

  • CloudBinaryParameters

Constructors​

Constructor​

new FileBinaryParameters(): FileBinaryParameters

Returns​

FileBinaryParameters

Inherited from​

CloudBinaryParameters.constructor

Properties​

_maxFileSize​

protected _maxFileSize: number

Defined in: core/lib/services/binary.service.d.ts:619

max file size

Inherited from​

CloudBinaryParameters._maxFileSize


folder​

folder: string

Defined in: fs/src/filebinary.service.ts:51

Define the folder to store objects in


maxSize?​

optional maxSize?: number

Defined in: fs/src/filebinary.service.ts:56

Maximum size to handle

Default​

10Mb

models​

models: object

Defined in: core/lib/services/binary.service.d.ts:627

Define the map of models

  • indicates all models

key is a Store name the string[] represent all valids attributes to store files in * indicates all attributes

Index Signature​

[key: string]: string[]

Inherited from​

CloudBinaryParameters.models


prefix?​

optional prefix?: string

Defined in: core/lib/services/cloudbinary.d.ts:7

Inherited from​

CloudBinaryParameters.prefix


type​

type: string

Defined in: core/lib/services/serviceparameters.d.ts:8

Type of the service

Inherited from​

CloudBinaryParameters.type


url?​

optional url?: string

Defined in: fs/src/filebinary.service.ts:60

URL to use for direct download

Accessors​

maxFileSize​

Get Signature​

get maxFileSize(): number

Defined in: core/lib/services/binary.service.d.ts:640

Get the max file size in bytes

Returns​

number

the result number

Set Signature​

set maxFileSize(value): void

Defined in: core/lib/services/binary.service.d.ts:635

Define the maximum filesize to accept as direct upload

Default​
10 MB
Parameters​
value​

string | number

Returns​

void

Inherited from​

CloudBinaryParameters.maxFileSize

Methods​

load()​

load(params): this

Defined in: fs/src/filebinary.service.ts:68

Load and normalize parameters, ensuring the folder path has a trailing slash.

Parameters​

params​

any

raw parameter values

Returns​

this

this instance for chaining

Overrides​

CloudBinaryParameters.load


update()​

update(params, delta): this

Defined in: core/lib/services/serviceparameters.d.ts:25

Update parameters and call watchers if a parameter was changed

Parameters​

params​

any

the service parameters

delta​

any

the delta

Returns​

this

this for chaining

Inherited from​

CloudBinaryParameters.update


with()​

with(callback): this

Defined in: core/lib/services/serviceparameters.d.ts:31

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining

Inherited from​

CloudBinaryParameters.with