mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
companion: send null when download is complete
This commit is contained in:
parent
5dd7e885f3
commit
de04c7978c
1 changed files with 2 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ const get = (req, res) => {
|
|||
protocol: req.body.protocol,
|
||||
metadata: req.body.metadata,
|
||||
size: size,
|
||||
fieldname: req.body.fieldname,
|
||||
pathPrefix: `${filePath}`,
|
||||
storage: redis.client(),
|
||||
headers: req.body.headers
|
||||
|
|
@ -97,5 +98,6 @@ const downloadURL = (url, onDataChunk) => {
|
|||
|
||||
request(opts)
|
||||
.on('data', onDataChunk)
|
||||
.on('end', () => onDataChunk(null))
|
||||
.on('error', (err) => logger.error(err, 'controller.url.download.error'))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue