Skip to content

Commit 4a6babf

Browse files
committed
Reverting changes in handlers/post.js
1 parent d9f662d commit 4a6babf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/handlers/post.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ async function handler (req, res, next) {
5656
const busboy = new Busboy({ headers: req.headers })
5757
busboy.on('file', async function (fieldname, file, filename, encoding, mimetype) {
5858
debug('One file received via multipart: ' + filename)
59-
const filePath = ldp.resourceMapper._rootPath + path.join(containerPath, filename)
60-
const { url: putUrl } = await ldp.resourceMapper.mapFileToUrl({ path: filePath, hostname: req.hostname })
59+
const { url: putUrl } = await ldp.resourceMapper.mapFileToUrl(
60+
{ path: ldp.resourceMapper._rootPath + path.join(containerPath, filename), hostname: req.hostname })
6161
try {
6262
await ldp.put(putUrl, file, mimetype)
6363
} catch (err) {

0 commit comments

Comments
 (0)