Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Uploading images/files inside a PWA

I've build a PWA using PWABuilder from Microsoft, and created some webpages to show those within the PWA. On one of those pages the user should be able to upload images/files, within the browser it works fine, but inside my "app" nothing happens if the user clicks on "upload file".

Actually I am using Gravityforms for Wordpress to upload images, but since its not working I researched and found

<input type="file" accept="image/*;capture=camera">

but it isn't working neither.

In the Android manifest I'm getting permission to access media storage and camera

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

still not working.

Does anyone has an suggestion what else I could try?

[MOD: edited code block - srh]