Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1375] Android: File mimeTypes don't make there way to binary upload

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:00.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, blob, defect, xhr
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T02:50:43.000+0000
Updated2011-04-17T01:56:00.000+0000

Description

If you read a file into a Blob (using File.read()), and pass along the blob to XHR, the blob doesn't have the correct mime type for sending to the HTTP server

Comments

  1. Marshall Culpepper 2011-04-15

    Odd, the resolving commit didn't close this for some reason.. here's a link for reference:

    http://github.com/appcelerator/titanium_mobile/commit/bc2037a9adcb1170d800b6bc1eaa5bf7124ea693"> http://github.com/appcelerator/titanium_mobile/commit/bc2037a9adcb1...

  2. Marshall Culpepper 2011-04-15

    (from [bc2037a9adcb1170d800b6bc1eaa5bf7124ea693]) delegate to TiBlob for file reading from TiFile, make sure file mimetype is read from a TiResourceFile. [#1375 state:resolved] http://github.com/appcelerator/titanium_mobile/commit/bc2037a9adcb1170d800b6bc1eaa5bf7124ea693"> http://github.com/appcelerator/titanium_mobile/commit/bc2037a9adcb1...

JSON Source