Skip to content

Instantly share code, notes, and snippets.

View asnowfix's full-sized avatar

FiX Kowalski asnowfix

View GitHub Profile
@asnowfix
asnowfix / formidable-issue182.js
Created October 17, 2012 19:56
test case showing difference between node-formidable multipart/form-data streams and fs.File streams
var fs = require("fs");
var path = require("path");
var express = require("express");
var util = require("util");
var querystring = require("querystring");
var temp = require("temp");
var zipstream = require('zipstream');
var formidable = require('formidable');
function Zipper(config, next) {
@asnowfix
asnowfix / busboy-issue1.txt
Created September 30, 2013 09:51
large form-data exhibit issue refered to by https://github.com/mscdex/busboy/issues/1
This file has been truncated, but you can view the full file.
----------------------------385268511887432987672305
Content-Disposition: form-data; name="file"; filename="README-CORDOVA-WEBOS.md"
Content-Type: application/octet-stream; x-encoding=base64
Q29yZG92YSB3ZWJPUyBJbnN0cnVjdGlvbnM6Ci0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQoKLSBTZXQgdXAgeW91ciBwcm9qZWN0IHRoZSBzYW1lIHdheSB5b3Ugd291bGQgc2V0IHVwIGFueSBvdGhlciBib290cGxhdGUgcHJvamVjdC4KLSBNb2RpZnkgeW91ciBpbmRleC5odG1sIGFuZCBKYXZhU2NyaXB0IGZpbGVzIGFzIG91dGxpbmVkIGluIHRoaXMgYmxvZyBwb3N0OiBbSmF2YVNjcmlwdCBBcHBzIGZvciBPcGVuIHdlYk9TIFdpdGggRW55byBhbmQgQ29yZG92YV0oaHR0cDovL2Jsb2cub3BlbndlYm9zcHJvamVjdC5vcmcvcG9zdC8zOTI3ODYxODI5OS9qYXZhc2NyaXB0LWFwcHMtZm9yLW9wZW4td2Vib3Mtd2l0aC1lbnlvLWFuZC1jb3Jkb3ZhKQotIENvcHkgYXBwaW5mby5qc29uIGZyb20gdGhlIFBob25lR2FwICdsaWIvd2Vib3MvZnJhbWV3b3JrJyBkaXJlY3RvcnkgYW5kIGEgY29yZG92YSBKYXZhU2NyaXB0IGZpbGUgZnJvbSB0aGUgUGhvbmVHYXAgJ2xpYi93ZWJvcy9saWInIGRpcmVjdG9yeQotIE1vZGlmeSBhcHBpbmZvLmpzb24gZm9yIHlvdXIgcHJvamVjdCBhbmQgYWRkIGFuIGljb24KLSBydW4gdG9vbHNcZGVwbG95LmJhdCAtLWNvcmRvdmEtd2Vib3Mgb3IgdG9vbHMvZGVw