incubator-callback-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/CB-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158909#comment-13158909
] 

Shazron Abdullah commented on CB-63:
------------------------------------

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


by: http://github.com/bcardarella 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: http://github.com/bcardarella commented September 12, 2011
In short, whatever represents the captures media file should be 100% compatible with the W3C
File object.


by: http://github.com/bcardarella 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: http://github.com/shazron 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: https://issues.apache.org/jira/browse/CB-63
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/280
> by: https://github.com/bcardarella
> Phonegap's MediaFile object should be compatible with the W3C's Blob object: http://dev.w3.org/2006/webapi/FileAPI/#file
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message