FileAPI

APIs. Namespace

FileAPI

Description:
  • FileAPI namespace

Methods

(static) *common(req, res)

Parameters:
Name Type Description
req Object
res Object
Throws:
status message description
404 FILE_NOT_FOUND if file is not found

(static) CUploadFileArchive API(req, res)

Description:
  • 아카이브 파일 업로드 API

Version:
  • 2.0.0
Parameters:
Name Type Description
req Object
Properties
Name Type Description
method "POST"
url "/files/archive"
user Object
body FormData
res Object
Properties
Name Type Description
originalName string

file original name

key string

file key

url string

file url

preSignedUrl string

file preSignedUrl

expiryDate Date

expiryDate of file preSignedUrl

(static) RSignedUrlArchive API(req, res)

Description:
  • 서명된 아카이브 파일 주소 조회 API

Version:
  • 2.0.0
Parameters:
Name Type Description
req Object
Properties
Name Type Description
method "GET"
url "/files/archive/signed"
query Object
Properties
Name Type Description
key string

file key

archive string

ObjectId of archive

label string

archive[i].label

fieldLabel string

archive[i].fields[j].label

fileName- string

fileName

user Object
res Object
Properties
Name Type Description
preSignedUrl string

file preSignedUrl

expiryDate Date

expiryDate of file preSignedUrl

(static) RSignedUrlBackup API(req, res)

Description:
  • 서명된 백업 파일 주소 조회 API

Version:
  • 2.0.0
Parameters:
Name Type Description
req Object
Properties
Name Type Description
method "GET"
url "/files/backup/signed"
query Object
Properties
Name Type Description
key string

file key

fileName- string

fileName

user Object

owner

res Object
Properties
Name Type Description
preSignedUrl string

file preSignedUrl

expiryDate Date

expiryDate of file preSignedUrl

(static) RSignedUrlDocument API(req, res)

Description:
  • 서명된 문서 파일 주소 조회 API

Version:
  • 2.0.0
Parameters:
Name Type Description
req Object
Properties
Name Type Description
method "GET"
url "/files/document/signed"
query Object
Properties
Name Type Description
key string

file key

fileName- string

fileName

user Object
res Object
Properties
Name Type Description
preSignedUrl string

file preSignedUrl

expiryDate Date

expiryDate of file preSignedUrl