Comments (6)
Hi,
What's your browser version and node version and platform?
from socketio-file-upload.
Hello,
Google Chrome vers. 35.0.1916.153 m
node v0.10.25
Windows XP
From: vote539 [email protected]
To: vote539/socketio-file-upload [email protected]
Cc: HiloCoder [email protected]
Sent: Monday, June 16, 2014 1:51 PM
Subject: Re: [socketio-file-upload] Unable to get file to transfer (#13)
Hi,
What's you're browser version and node version and platform?
On Jun 16, 2014, at 1:38 PM, HiloCoder [email protected] wrote:
I am trying to use socketio-file-upload from a context menu item click event. I am calling myinstance.prompt(), the dialog comes up, I select a file, hit Open. The server emits a "siofu_ready", then nothing else happens. The file is created in the specified server side dir but with 0 bytes. No errors in the console. Help would be appreciated.
—
Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub.
from socketio-file-upload.
Are you running Node.JS on Windows XP, or is that just your desktop operating system? Windows XP may be kind-of quirky with Node.JS, especially with regards to file streams and such.
Can you try running the following script and see if it creates the file correctly? It should make "hello.txt" that contains "hello world". This uses the same under-the-hood mechanism for writing the file as socketio-file-upload.
var fs = require("fs");
var buf = new Buffer("aGVsbG8gd29ybGQNCg==", "base64");
var path = "hello.txt";
var stream = fs.createWriteStream(path, { mode: "0666" });
stream.on("open", function(){
setTimeout(function(){
stream.write(buf);
stream.end();
}, 100);
});
from socketio-file-upload.
Yes, running node js on Win XP for development and have had no problems. I ran your script and it works correctly.
From: vote539 [email protected]
To: vote539/socketio-file-upload [email protected]
Cc: HiloCoder [email protected]
Sent: Monday, June 16, 2014 4:59 PM
Subject: Re: [socketio-file-upload] Unable to get file to transfer (#13)
Are you running Node.JS on Windows XP, or is that just your desktop operating system? Windows XP may be kind-of quirky with Node.JS, especially with regards to file streams and such.
Can you try running the following script and see if it creates the file correctly? It should make "hello.txt" that contains "hello world". This uses the same under-the-hood mechanism for writing the file as socketio-file-upload.
var fs = require("fs");
var buf = new Buffer("aGVsbG8gd29ybGQNCg==", "base64");
var path = "hello.txt"; var stream = fs.createWriteStream(path, { mode: "0666" }); stream.on("open", function(){ setTimeout(function(){ stream.write(buf); stream.end(); }, 100);
});
—
Reply to this email directly or view it on GitHub.
from socketio-file-upload.
Were you able to solve this issue?
You may also want to try the new useBuffer
option in version 0.3 (which requires Socket.IO 1.0).
from socketio-file-upload.
No, I ended up using formidable.
from socketio-file-upload.
Related Issues (20)
- Possible memory issue HOT 2
- does it work with socket io 2.0? HOT 1
- how to move file to different folder after receiving. HOT 1
- When maxFileSize is set, emitChunkFail is force to true
- Investigate why tests require Socket.io 2.1.1
- Starting but not uploading HOT 4
- Resume upload on reconnect
- unbind listeners of server instance HOT 1
- Error when file size is greater than maxFileSize
- Rewrite in TypeScript HOT 4
- How's make a client-server-client application ? HOT 1
- Socket disconnects may cancel in-progress uploads for other clients HOT 4
- How to upload a file in base64 format? HOT 3
- How to use node js as client side. HOT 1
- Problem with nginx HOT 4
- 同学,您这个项目引入了372个开源组件,存在8个漏洞,辛苦升级一下 HOT 1
- Upload speed seems slow HOT 1
- No events from the client and the server.
- Is this supposed to work with Socket.IO version 4+? HOT 4
- How to upload files using java client?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socketio-file-upload.