Closed PaulBGD closed 9 years ago
Can you post the code you're using?
Sure! Sorry for the spacing. Do you need to see anything else?
c.put("../images/" + files[i], "new/game/images/" + files[i], function(err) {
if(err) {
throw err;
}
if(--todo == 0) {
console.log("Finished!");
c.end();
}
});
Can you describe the corruption? Are the files zero bytes? Are there no files at all? Or something else?
The files are created, however they have < 20 bytes. Also, I checked that the end method is only being called after the last one is uploaded.
Just realized I left this open. I don't remember the exact solution was, but I'm pretty sure I just closed the stream early.
I cannot seem to upload images without them corrupting. I don't see anything in the documentation, so I suppose this is an issue?