<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HTML App - file selection]]></title><description><![CDATA[<p dir="auto">I am currently developing a Ubuntu Touch App and I'm using the HTML template. I do not use any libraries or dependencies, but pure HTML + JavaScript. I've tried the following to allow the user to pick a file on the device:</p>
<pre><code>&lt;input type="file" accept="image/*"&gt;
&lt;input type="file" accept="*"&gt;
</code></pre>
<p dir="auto">Both tags lead to a window with the following message (in clickable desktop as well as on the device):</p>
<p dir="auto"><em><strong>Sorry, there aren't currently any apps installed that can provide this type of content.</strong></em></p>
<p dir="auto">In the clickable log I've also noticed the following message:</p>
<p dir="auto"><em><strong>file:///usr/share/morph-browser/ContentPickerDialog.qml:118: ReferenceError: acceptTypes is not defined</strong></em><br />
(I'm not sure if this message has something todo with my problem)</p>
<p dir="auto">How can I enable the file selection?</p>
]]></description><link>https://forums.ubports.com/topic/7703/html-app-file-selection</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 04:39:15 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/7703.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Apr 2022 14:34:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HTML App - file selection on Thu, 26 May 2022 15:32:25 GMT]]></title><description><![CDATA[<p dir="auto">I found the solution! I came across the documentation for the policy groups. So I added <code>"content_exchange"</code> to the list of the <code>"policy-groups"</code> in the apparmor file and - voila - the input file dialog shows me a list of apps.</p>
<p dir="auto">Thanks for the hint with the Content Hub!</p>
]]></description><link>https://forums.ubports.com/post/64384</link><guid isPermaLink="true">https://forums.ubports.com/post/64384</guid><dc:creator><![CDATA[Schlicki2808]]></dc:creator><pubDate>Thu, 26 May 2022 15:32:25 GMT</pubDate></item><item><title><![CDATA[Reply to HTML App - file selection on Tue, 26 Apr 2022 15:14:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schlicki2808" aria-label="Profile: schlicki2808">@<bdi>schlicki2808</bdi></a> hello, never worked on html apps on UT, but files access is done with ContentHub.</p>
<p dir="auto">There is a raw documentation here: <a href="https://api-docs.ubports.com/sdk/apps/html5/ContentHub/ContentHub.html" rel="nofollow ugc">https://api-docs.ubports.com/sdk/apps/html5/ContentHub/ContentHub.html</a></p>
]]></description><link>https://forums.ubports.com/post/63963</link><guid isPermaLink="true">https://forums.ubports.com/post/63963</guid><dc:creator><![CDATA[lduboeuf]]></dc:creator><pubDate>Tue, 26 Apr 2022 15:14:49 GMT</pubDate></item></channel></rss>