mirror of
https://github.com/sstent/node.git
synced 2026-01-25 14:42:00 +00:00
added todo and studff to test in app for tempdir detection
This commit is contained in:
11
app/app.js
11
app/app.js
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user