Security/Reviews/Gaia/DownloadManager: Difference between revisions

Line 98: Line 98:


=== How does the phone know to download the file instead of try to do something with it? ===
=== How does the phone know to download the file instead of try to do something with it? ===
* hared/js/mime_mapper.js - responsible for mime type checking and inference
* have been told any HTTP response with Content-Type of 'application/octet-stream' will cause the file to be downloaded. Need to find/verify code.
* shared/js/mime_mapper.js - responsible for mime type checking and inference


=== Once the file has downloaded, how does phone open file? ===
=== Once the file has downloaded, how does phone open file? ===
Confirmed users
353

edits