[TIMOB-8659] MobileWeb: Ti.Filesystem base64 encodes application/x-javascript files
| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-04-19T10:26:48.000+0000 |
| Affected Version/s | Release 2.1.0 |
| Fix Version/s | Release 2.1.0, Sprint 2012-08 |
| Components | MobileWeb |
| Labels | n/a |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2012-04-10T14:54:40.000+0000 |
| Updated | 2017-03-04T00:01:59.000+0000 |
Description
When using Ti.Filesystem to read in a javascript file, it will base64 encode the file into the blob because the mime type starts with "application". The "application/x-javascript" mime type will need to be whitelisted to be treated as plain text.
Attachments
| File | Date | Size |
| app.js | 2012-04-18T13:07:48.000+0000 | 317 |
| hi.js | 2012-04-18T13:07:48.000+0000 | 12 |
Pull request: https://github.com/appcelerator/titanium_mobile/pull/2031
Closing ticket as MobileWeb is no longer supported.