I need help There is a problem uploading images

Hello, I have a problem uploading images via Image picker. There is a difference between the application in companion and when I upload the application in APK.


What’s problem are you facing? Provide the main problem for us to understand.

Provide your relevant block

Uploading images works fine in companion, but when uploading the app in apk format it doesn’t work.There is a difference in opening the studio on the mobile device

Again you forgot to provide your relavant blocks of how you’re handling the picker

What error are you getting? Is it permission denied?

You can’t store files in random directories anymore… use shared storage or ASD… see also Some basics on Android storage system

Taifun

The problem has not been solved. The block in the companion works, but when uploading the IP format, it does not work and an error appears.
ImgBBHost.aia (256.9 KB)


You’re using image picker I recommend using SAF

The problem is that the add-(DevYbImage Compressor)on does not work.

What problem are facing?

The problem has not been solved. The block in the companion works, but when uploading the IP format, it does not work and an error appears.
ImgBBHost.aia (256.9 KB)

If you are asking for help, I recommend you to make it as easy for others to be able to help you …

You probably will get more feedback then…

which means in your case post a screenshot of your relevant blocks and the exact error message

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc… this takes time, and most people will not do that…

Thank you.

Taifun

1 Like



you should replace <packageName> by the package name of your app
easier would be to use the MakePath block from the file component together with scope App to get the path to ASD

Taifun

1 Like

Also you have to get API key from ImgBbHost in you’re project there’s no API

I checked your aia there’s no API for the extension, even if you able to solve the image error you can’t upload it without having API key for hosting site​:victory_hand::victory_hand:




Hello, is it normal for the image extension to be different when the image is uploaded to the Companion and when the image is uploaded to APK?

What android version are you using?

Thank you, the problem is solved.

Hi Saad,
if you can, please share your solution, it might also be useful to someone else,

thanks.