App-Inventor-Gallery icon indicating copy to clipboard operation
App-Inventor-Gallery copied to clipboard

Use saved file name of source and apk as default download file name

Open derrell opened this issue 13 years ago • 3 comments

See also #114.

derrell avatar Sep 29 '11 00:09 derrell

The HTTP header that needs to be sent looks something like this:

Content-Disposition: attachment; filename="your-name.here"

It looks like the static function aiagallery.dbif.Decoder64.getDecodedURL will need to retrieve the file name (from wherever it's stored), and add it to the returned map, so that the "getdata" portion of RpcServlet.js knows what to add to the header.

derrell avatar Sep 29 '11 00:09 derrell

Consider naming file by project title instead of by original upload file name

derrell avatar Oct 14 '11 16:10 derrell

Try this MIME type: application/vnd.android.package-archive

derrell avatar Nov 23 '11 15:11 derrell