APK-файлы, подаваемые с помощью метода загрузки ответа laravel, меняют расширение на Chrome Mobile ⇐ Php
-
Anonymous
APK-файлы, подаваемые с помощью метода загрузки ответа laravel, меняют расширение на Chrome Mobile
I am serving an APK file to the user to download on there mobile but somehow its extension is changed and .zip is appended to it. Below is my code:
return response()->download(public_path('/releases/' . $APKFile),'app-release.apk',['Content-Type: application/vnd.android.package-archive']); With the above code, app-release.apk file becomes app-release.apk.zip on download when the user download it on an android device, specifically on Chrome Mobile.
But this works perfectly okay on Desktop and PCs.
Источник: https://stackoverflow.com/questions/714 ... xtension-c
I am serving an APK file to the user to download on there mobile but somehow its extension is changed and .zip is appended to it. Below is my code:
return response()->download(public_path('/releases/' . $APKFile),'app-release.apk',['Content-Type: application/vnd.android.package-archive']); With the above code, app-release.apk file becomes app-release.apk.zip on download when the user download it on an android device, specifically on Chrome Mobile.
But this works perfectly okay on Desktop and PCs.
Источник: https://stackoverflow.com/questions/714 ... xtension-c