AttachmentFileSystemStorage

module:most-web.files. AttachmentFileSystemStorage

AttachmentFileSystemStorage class describes a file storage for attachments' management on local file system.

Constructor

new AttachmentFileSystemStorage(physicalPath)

Parameters:
Name Type Description
physicalPath string The root directory of this storage
Source:

Extends

  • FileStorage

Methods

copyFrom(context, src, attrs, callback)

Parameters:
Name Type Description
context HttpContext
src string
attrs *
callback function
Source:

copyTo(context, item, dest, callback)

Parameters:
Name Type Description
context HttpContext
item string | *
dest string
callback function
Source:

createReadStream(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source:

exists(context, query, callback)

Parameters:
Name Type Description
context HttpContext
query *
callback function
Source:

find(context, query, callback)

Parameters:
Name Type Description
context HttpContext
query *
callback function
Source:

findOne(context, query, callback)

Parameters:
Name Type Description
context HttpContext
query *
callback function
Source:

init(callback)

Parameters:
Name Type Description
callback function
Source:

resolvePhysicalPath(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source:

resolveUrl(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source:

save(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source: