Constructor
new AttachmentFileSystemStorage(physicalPath)
Parameters:
Name | Type | Description |
---|---|---|
physicalPath |
string | The root directory of this storage |
Extends
- FileStorage
Methods
copyFrom(context, src, attrs, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
src |
string | |
attrs |
* | |
callback |
function |
copyTo(context, item, dest, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
string | * | |
dest |
string | |
callback |
function |
createReadStream(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |
exists(context, query, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
query |
* | |
callback |
function |
find(context, query, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
query |
* | |
callback |
function |
findOne(context, query, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
query |
* | |
callback |
function |
init(callback)
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
resolvePhysicalPath(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |
resolveUrl(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |
save(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |