freesoftwarefactory / parse-multipart

A javascript/nodejs multipart/form-data parser which operates on raw data.
MIT License
48 stars 82 forks source link

Unable to get this working. #1

Closed tmfksoft closed 7 years ago

tmfksoft commented 7 years ago

Hi, I've tried your lib in the hope of getting my code working alongside the AWS API. However, at this point I cannot get the demo data to work. My code for testing with your demo data is below:

let multipart = require('parse-multipart');
let parts = multipart.Parse(multipart.DemoData(),"----WebKitFormBoundaryvef1fLxmoUdYZWXp");
console.log(parts);
for(let i=0;i<parts.length;i++){
    let part = parts[i];
    console.log(part);
    // will be:
    // { filename: 'A.txt', type: 'text/plain', 
    //      data: <Buffer 41 41 41 41 42 42 42 42> }
}

I may be overlooking something, do get back to me if I've merely forgotten something

christiansalazar commented 7 years ago

hi Edwards. thanks for reply. will put my eye on the demo data and will feedback to you soon (by night)

El 24 may. 2017 03:42, "Thomas Edwards" notifications@github.com escribió:

Hi, I've tried your lib in the hope of getting my code working alongside the AWS API. However, at this point I cannot get the demo data to work. My code for testing with your demo data is below:

let multipart = require('parse-multipart'); let parts = multipart.Parse(multipart.DemoData(),"----WebKitFormBoundaryvef1fLxmoUdYZWXp"); console.log(parts); for(let i=0;i<parts.length;i++){ let part = parts[i]; console.log(part); // will be: // { filename: 'A.txt', type: 'text/plain', // data: <Buffer 41 41 41 41 42 42 42 42> } }

I may be overlooking something, do get back to me if I've merely forgotten something

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/freesoftwarefactory/parse-multipart/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABk4g1tojdOn5XIPpk1PvoPQqswqg02zks5r89qsgaJpZM4NkslZ .

christiansalazar commented 7 years ago

thanku for your reply. just fixed, you can now update your package. you can found the notes here https://github.com/freesoftwarefactory/parse-multipart/releases/tag/1.0.0002 .

https://www.npmjs.com/package/parse-multipart

2017-05-24 11:35 GMT-04:00 Cristian Salazar christiansalazarh@gmail.com:

hi Edwards. thanks for reply. will put my eye on the demo data and will feedback to you soon (by night)

El 24 may. 2017 03:42, "Thomas Edwards" notifications@github.com escribió:

Hi, I've tried your lib in the hope of getting my code working alongside the AWS API. However, at this point I cannot get the demo data to work. My code for testing with your demo data is below:

let multipart = require('parse-multipart'); let parts = multipart.Parse(multipart.DemoData(),"----WebKitFormBoundaryvef1fLxmoUdYZWXp"); console.log(parts); for(let i=0;i<parts.length;i++){ let part = parts[i]; console.log(part); // will be: // { filename: 'A.txt', type: 'text/plain', // data: <Buffer 41 41 41 41 42 42 42 42> } }

I may be overlooking something, do get back to me if I've merely forgotten something

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/freesoftwarefactory/parse-multipart/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABk4g1tojdOn5XIPpk1PvoPQqswqg02zks5r89qsgaJpZM4NkslZ .

--

Cristian A. Salazar

Building Next Generation Apps with Serverless/Microservices, follow me: @AmazonAwsVideos

(+569) 9649-3840 | https://plus.google.com/+ChristianSalazar Santiago. Chile.

Bitbucket https://bitbucket.org/christiansalazarh/ | Github https://github.com/freesoftwarefactory | Stackoverflow http://stackoverflow.com/users/937815/christian | Google + https://plus.google.com/+ChristianSalazar | Blog http://trucosdeprogramacionmovil.blogspot.cl/ | Youtube http://www.youtube.com/c/ChristianSalazar | Npm (NodeJs) https://www.npmjs.com/~csalazar

tmfksoft commented 7 years ago

Hi, thanks for getting back so soon, I'll try this out shortly and get back to you :)

tmfksoft commented 7 years ago

Using the demo data works, this issue is resolved.