added todo and studff to test in app for tempdir detection

This commit is contained in:
2012-06-13 00:36:44 -04:00
parent b007423f0a
commit f8be5af604
2 changed files with 16 additions and 5 deletions

View File

@@ -26,6 +26,17 @@ var app = require('http').createServer(function handler(request, response) {
files = [],
fields = [];
// var tempDirectory = "/tmp/";
// //tempdirectory changes if the operating system is windows
// if(os.type().indexof("windows") > -1)
// {
// tempdirectory = "c:\\temp\\";
// }
// form.uploaddir = tempdirectory;
tempDirectory = "c:\\Temp\\";
form.uploadDir = tempDirectory;