Please try the two examples again from the beginning, without any modifications, once we have those working you can add the things you want, and keep testing as you do that.
Remember, with a web app:
1 Open the script project
2 Go to Publish
3 Deploy as Web App
4 Project version: - select New from the dropdown
5 Execute the app as: your google account address (email)
6 Who has access to the app: Anyone, even anonymous
7 Press the Update button
You have to do this EVERY TIME you change your script
You can confirm that you are able to use the Upload to Google Drive demo to upload the image file provided ?
The issue now is picking a different file for upload ? Yes there are a few problems arising following the latest update, especially for Android 10+ devices, due to Google's tightening of file access policies. There is a bugfix release due soon, it is in testing at the moment. there are several topics on the forum about getting the correct file path, I have not seen a definitive solution yet for all situations, all android versions, but i am sure this will be forthcoming shortly. What is you android version of your device? We can then seek a solution from there....
Have you tried the php post file solution on your server yet ?
the point is did you test it on your side and it worked with you or not to upload any file extension if so then please share otherwise we need to wait for a solution of this unsolved problem
Doesn't matter where the file is. It is just a demo app, so I only changed the bare minimum to test.
You asked if it could upload files other than images, which it can.
regarding the embedded assets already inside the project sure it can , but that's not my point at all I mean when I pick another file such as from the SD card or from the phone memory not embedded
[ file:// ]
That is a different issue. You will need to check that the file path returned for the file that you pick meets the requirements of the blocks for the uploading section. You may get a content uri which needs converting, or if on Android 10 a "wrong" file path that needs correcting, or you may need to extract the filename from the file path returned. Use Do It on your blocks once you have picked a file to see what you are getting back.
Remember, in the demo the files are in the assets - there is no file path - per se... (<Android 10)
I wasted more than 6 days so far on this that's why I said enough of it and pay to let someone else do it for me , because I can't keep suffering in anything in my life like this.
I have prepared a demo app, based upon the previous one, that includes a file picker. This has been tested with companion on my Genymotion Emulator, using Android 9 and 10 - it works fine on both android versions.