incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-63) MediaFile should inherit from File, which should inherit from Blob
Date Mon, 28 Nov 2011 23:11:39 GMT


Shazron Abdullah commented on CB-63:

by: commented September 12, 2011
This issue should be replicated in phonegap-android and phonegap-blackberry-webworks as well.

by: commented September 12, 2011
Yeah, I've been digging deeper and deeper and the callback from any fo the capture methods
just return an array of MediaFiles.

I propose the following:

The W3C states that instead of an array the files should be returned in a FileList object,
each file itself should inherit from a Blob which has direct access to the filesystem through
the browser. I should be able to append the image I get back from a capture to a XHR-2 request,
currently that is not the case.

by: commented September 12, 2011
In short, whatever represents the captures media file should be 100% compatible with the W3C
File object.

by: commented September 12, 2011
@shazron is there a better way to discuss this issue than opening individual issues in each
Phonegap type? I would prefer to keep the discuss in one place. (I just happen to be doing
iOS stuff, only reason I opened it here)

by: commented September 12, 2011
I'm afraid filing duplicate issues will have to do for now, so we can track the issues as
"todos" for each. For discussion, you could paste a link to the iOS one and suggest that the
discussion should be there.
> MediaFile should inherit from File, which should inherit from Blob
> ------------------------------------------------------------------
>                 Key: CB-63
>                 URL:
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: iOS
>            Reporter: Shazron Abdullah
> reported at:
> by:
> Phonegap's MediaFile object should be compatible with the W3C's Blob object:
> This would allow us to make use of the new XHR-2 functionality available to us with iOS
4.2 to asynchronously send files via Ajax.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message