Created
February 22, 2013 08:24
-
-
Save dileephell/5011730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tmp_path = req.files.uploadimgs.path,uuid; | |
var target_path = './upload/work/'+uuid() +'.png'; | |
if(req.files) | |
{ | |
mkdirp(newDir,0777,function(err){ | |
if(err) throw err; | |
}) | |
} | |
if(req.files) | |
{ | |
fs.rename(tmp_path, target_path,+req.files.uploadimgs.name,function(err){ | |
if(err) throw err; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment