I have an apk file on my server (which is hosted on Hostinger) CentOS OS
now I want users to download that file from my server.
but when I point the url to the apk location it says 404 page not found while I know there are entire web sites dedicated to doing it.
I tried modifying htaccess file
AddType application/octet-stream .apk
then
AddType application/vnd.android.package-archive .apk
then
<Files *.*>
ForceType application/octet-stream
</Files>
but that doesn't seem to work.
even tried doing this https://stackoverflow.com/a/28784154/4481968
PS. all other file formats get downloaded, even .APK file gets downloaded but not .apk (why is that?)
I just had the same problem with Hostinger and wrote to the support.
They said, .apk files are blocked for security reasons.
However, rename the file to .APK, that is working as well and you can reach it on your server.
Create file with name .htaccess and just paste the below code in it and move this file on your server where your apk file is placed
AddType application/octet-stream .apk
AddType application/vnd.android.package-archive .apk
ForceType application/octet-stream
I know it is already answered. But anyone still facing the issue even after making changes suggested above, change minifyEnabled true to minifyEnabled false if it is enabled in build.gradle file of your app.
Related
I have a static website I downloaded. Among the usual .css, .js and .html files there is a .pl file with the following contents:
I had to upload a screenshot because the file contents didn't display correctly when I copied and pasted them here. I understand it's a Perl file but can anyone tell me what purpose it has?
You can tell from the magic byte in that file that it's a GIF file. GIF98a is a version of a gif file.
So what almost certainly happened is
Someone created a web server
That server is running in CGI mode.
They have a perl script (which is normally .pl suffix)
That perl script is serving up files.
That perl script did not set Content-Disposition header properly so your browser doesn't know what to save it as.
Your browser defaulted the save-name to the name of the cgi script, or you accepted that manually.
It served you a .gif file, which you downloaded to that location.
When i upload TCPDF library files to live server, the file tcpdf_fonts.php from tcpdf/include folder dissapears .. any idea of why ?
The file tcpdf_fonts.php has been blaklisted by the hosting company.
Requesting for include it in a whitelist (solved).
I am trying to upload an ipa file (written in Swift) to our MDM console (AirWatch). The console is .Net, and when I try to upload I get a message saying the path contains illegal characters. The path does not, and I can upload other ipa files to MDM, so I'm left with something wrong with the ipa itself. The MDM software reads the IPA when it's uploading it to determine version and other information. Anyone got any ideas?
-MJC
I've found that one of the folders embedded in the .ipa file has the 'cross' character (hex=10, ascii=16, DLE) in the 'LaunchScreen.storyboardc' folder.
This can be seen by opening the .ipa file using 7zip in Windows.
When we remove this folder using 7zip, Airwatch accepts the ipa file.
I've been working on a mobile game in Unity for over a month, saving all my work to OneDrive. Today I restarted my computer and when it loaded back up I tried opening my project and it failed. I looked through my OneDrive and half my files are missing! I've been on the phone with Microsoft support all day and I can't get those files back.
I have the apk file for the game loaded onto my phone. Is there anyway to reverse build this thing back onto Unity or just get the files back from the apk file ?
If by APK you mean Android's APK file you can just 'unzip' it and get at least you xml files and other resources such as images. All classes will be packed to classes.dex file, which can be converted to Java's JAR by dex2jar tool. However JAR will give you only Java's binaries. You could further de-compile them to Java files, but they are not going to look pretty or very readable.
Well, at least you can recover you XML layouts.
Are the files in your recycle bin on the OneDrive website or locally? Often times when OneDrive files go missing they can be found there.
where the htaccess file stored in htdocs folder.
I try find it in my development server but i did not find it.
Whenever i try to type url which is not valid it is redirect to home page of site.
I am not able to find out where setting will be stored.
Thanks
Depending on what OS you use, Linux will recognize the .htaccess file as hidden Windows doesn't.
The .htaccess file could be in the root folder of your webserver (htdocs for example).
But it doesn't need to be there by default. If it is not in there by default you can just create one your self
Are your trying to find with server machine by connect with FTP via Filezilla.
If filezilla means you can't see the htdocs file, instead of that you can connect with Winscp means you can find the .htaccess file