mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fixed issue with missing base in path.format
This commit is contained in:
@@ -81,7 +81,7 @@ uploadsController.uploadPost = function(req, res, next) {
|
||||
}, function(err) {
|
||||
// Return the resized version to the composer/postData
|
||||
var parsedUrl = path.parse(fileObj.url);
|
||||
delete parsedUrl.base;
|
||||
parsedUrl.base = parsedUrl.name + '-resized' + parsedUrl.ext;
|
||||
parsedUrl.name = parsedUrl.name + '-resized';
|
||||
fileObj.url = path.format(parsedUrl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user