mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Fixed upload path
This commit is contained in:
@ -151,7 +151,7 @@ exports.upload = function(req, res, next) {
|
|||||||
fs.readFile(path, function(err, data) {
|
fs.readFile(path, function(err, data) {
|
||||||
var hash = md5(data);
|
var hash = md5(data);
|
||||||
|
|
||||||
fs.writeFile('/srv/biomed-site/images/' + hash, data, function(err) {
|
fs.writeFile('/opt/biomed-site/images/' + hash, data, function(err) {
|
||||||
if (err)
|
if (err)
|
||||||
log.error("Error: %s", err);
|
log.error("Error: %s", err);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user