Final Improvement for CV Editor #3
All checks were successful
Neutral/pipeline/head This commit looks good
All checks were successful
Neutral/pipeline/head This commit looks good
This commit is contained in:
parent
ee51c4fe8a
commit
43bf4c0baa
@ -170,11 +170,11 @@ router.post("/", function(req, res, next) {
|
|||||||
|
|
||||||
if(fs.existsSync(projectFolder)) {
|
if(fs.existsSync(projectFolder)) {
|
||||||
|
|
||||||
image.mv(projectFolder + req.headers.uploadforproject + ".png", (error) => {
|
image.mv(projectFolder + req.headers.uploadforproject + ".jpg", (error) => {
|
||||||
|
|
||||||
if(error) {
|
if(error) {
|
||||||
res.send({"result":"ERROR"})
|
res.send({"result":"ERROR"})
|
||||||
console.log(err)
|
console.log(error)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ router.post("/", function(req, res, next) {
|
|||||||
|
|
||||||
const mdtestfolder = "../MD_TEST/project/image/"
|
const mdtestfolder = "../MD_TEST/project/image/"
|
||||||
|
|
||||||
image.mv(mdtestfolder + req.headers.uploadforproject + ".png", (error) => {
|
image.mv(mdtestfolder + req.headers.uploadforproject + ".jpg", (error) => {
|
||||||
|
|
||||||
if(error) {
|
if(error) {
|
||||||
res.send({"result":"ERROR"})
|
res.send({"result":"ERROR"})
|
||||||
|
Loading…
Reference in New Issue
Block a user