ahmedfgad/AndroidFlask

How to execute a shell script command after {return "Image(s) Uploaded Successfully. Come Back Soon."}?

mm840511m opened this issue · 6 comments

Hi, if I want to execute a shell script command (ex. subprocess.run(['./test.sh'])) after the return statement, what should I do?

Hi,

You can check this question for information about doing some processing after Flask returns a response.

hello my friend ! I have been using your project , but I can't select an image by saying "Please make sure the selected file is an image", I can't find the solution in your blog ,so if you can teach me how can i solve this problem? Thank you!

hello my friend ! I have been using your project , but I can't select an image by saying "Please make sure the selected file is an image", I can't find the solution in your blog ,so if you can teach me how can i solve this problem? Thank you!

Hello @Frankfengfeng
Could you check whether the app has permission to access the files? Go to the app settings and check please.

yes, in the AndroidManifest.xml I have two permission

I have try upload the .bmp and .jpg in the /sdcard/DCIM but it always ask me to check if is an image

Not the manifest file. I mean check the app settings after you install it to an Android device.

oh man! Thanks for your patience! sorry I just learn Android for days , you mean the app permission in the android studio SIMULATOR for the app,thanks again!