Application does not install in release mode when sent to server

1

I have an instance in Amazon EC2 where using PHP I am uploading an APK. I created a MIME-TYPE mapping .apk with application/vnd.android.package-archive , and also editing .htaccess by entering a type like this below:

AddType application/vnd.android.package-archive .apk

The problem is that when I send a .apk in debug mode it works normally, but when I upload the application in release mode, does the download correctly, however at the time of installation it displays a message that does not recognize the downloaded package.

To upload the file I use the move_upload_file , like this below:

move_uploaded_file($_FILES['fileUpload']['tmp_name'], $dir.$namefile)

Does anyone have any idea what might be happening? Is there any other configuration that should be performed in the release mode application so that it installs correctly? Do I need to do any specific configuration when sending the file?

    
asked by anonymous 03.10.2017 / 01:51

0 answers