Franck Pedrini Posted August 11, 2022 Share Posted August 11, 2022 I test demos 'download' , when i try to download an apk from an android mobile , the message is ACCESS DENIED Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 11, 2022 Share Posted August 11, 2022 14 minutes ago, Franck Pedrini said: I test demos 'download' , when i try to download an apk from an android mobile , the message is ACCESS DENIED Hello, Try this approach: procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin MimeTable.AddMimeType('apk', 'application/vnd.android.package-archive', False); end; Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 11, 2022 Share Posted August 11, 2022 9 hours ago, Sherzod said: Hello, Try this approach: procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin MimeTable.AddMimeType('apk', 'application/vnd.android.package-archive', False); end; Hi, how do I make it load from a file? If I want to allow the user to add it in a file with Mime Type ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 11, 2022 Share Posted August 11, 2022 Hello, Sorry, I didn't understand the question. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 11, 2022 Share Posted August 11, 2022 6 minutes ago, Sherzod said: Hello, Sorry, I didn't understand the question. sorry, I want to load myme types from file, how can do that ? something like that: MimeTable.LoadFromStrings (MimeTypeList,','); but how to produce file with values, is this correct if i want to add apk ? MimeTable.AddMimeType('apk', 'application/vnd.android.package-archive', False); in file will be: row 1: apk, application/vnd.android.package-archive row 2: xlsm, application/vnd.ms-excel.sheet.macroEnabled.12, False row 3 ..... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 12, 2022 Share Posted August 12, 2022 11 hours ago, irigsoft said: but how to produce file with values, is this correct if i want to add apk ? MimeTable.AddMimeType('apk', 'application/vnd.android.package-archive', False); Hello, Well, yes, try. This should work. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.