Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16712] Mobile Web: App fails to load on Windows Phone 8 (IE10) due to Ti.Filesystem calling unsupported xhr.overrideMimeType()

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2014-03-27T05:59:30.000+0000
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsWindows Hybrid
Labelsqe-3.2.2
ReporterSamuel Dowse
AssigneeChris Barber
Created2014-03-26T22:19:49.000+0000
Updated2017-03-20T17:48:30.000+0000

Description

Description

Posting a local file from an application using the following code sample results in an error.

Steps To Reproduce

var url = 'http://httpbin.org/post';
var client = Ti.Network.createHTTPClient({
    onload : function(e) {
        alert("SUCCESS");
    },
    onerror : function(e) {
        alert("FAIL");
    },
    timeout:5000
});
client.open('POST', url);
client.send({files:Ti.Filesystem.getFile('textfile.txt').read()});
Add a text file called 'textfile.txt' in your resources folder.

Expected Result

Should alert the user saying "SUCCESS"

Actual Result

Throws error saying "Object doesn't support property or method 'overrideMimeType' at x-wmapp0:index.html (line 4030)"

Comments

  1. Chris Barber 2014-03-27

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/4460
  2. Chris Barber 2014-03-27

    Dupe of TIMOB-14611.
  3. Lee Morris 2017-03-20

    Closing ticket as Windows Hybrid is no longer supported.

JSON Source