coolaj86 / formaline

formaline is a module for handling form requests ( HTTP POSTs / PUTs ) and for fast parsing of file uploads.
Apache License 2.0
239 stars 16 forks source link

use FileAPI attribute names where sensible #3

Closed coolaj86 closed 13 years ago

coolaj86 commented 13 years ago

It would be nice to use the same interface as the FileAPI and then try to standardize on any extra attributes.

I've started http://github.com/coolaj86/node-file-api and would be happy to change the names of my extra attributes to match yours or the other way around.

{
      "name": [string]
    , "lastModifiedDate": [string ISODate]
    , "size": [number]
    , "type": [string]
    , "slice" [function (start, length, [contentType]) {}]
}

http://www.w3.org/TR/FileAPI/#dfn-Blob

http://www.w3.org/TR/FileAPI/#dfn-file

rootslab commented 13 years ago

Ok, I have changed attributes like FILE API in new version 0.5.0