We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The latest zipped code doesn't work on windows for file renaming. So I resort to file copying instead.
Dig in for a while. Come up with one solution. See below.
In the upload request handler, use code below for file copying.
fs.createReadStream(files.upload.path). pipe(fs.createWriteStream('/tmp/test.jpg'). on('close', function(){ response.writeHead(200, {"Content-Type": "text/html"}); response.write("received image:"); response.write(""); response.end(); }));
The text was updated successfully, but these errors were encountered:
The above code worked for me on windows. But still needed to specify the paths with ./ instead of /
Sorry, something went wrong.
No branches or pull requests
The latest zipped code doesn't work on windows for file renaming. So I resort to file copying instead.
Dig in for a while. Come up with one solution. See below.
In the upload request handler, use code below for file copying.
fs.createReadStream(files.upload.path).
pipe(fs.createWriteStream('/tmp/test.jpg').
on('close', function(){
response.writeHead(200, {"Content-Type": "text/html"});
response.write("received image:
");
response.write("");
response.end();
}));
The text was updated successfully, but these errors were encountered: