<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									How to allow only specific file to allow in HTML - Front-End languages				            </title>
            <link>https://discuss.codewithbishal.com/front-end/how-to-allow-only-specific-file-to-allow-in-html-attribute/</link>
            <description>Discuss Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 20 May 2026 04:41:49 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Answer to: How to allow only specific file to allow in HTML attribute</title>
                        <link>https://discuss.codewithbishal.com/front-end/how-to-allow-only-specific-file-to-allow-in-html-attribute/#post-9</link>
                        <pubDate>Thu, 06 May 2021 10:21:56 +0000</pubDate>
                        <description><![CDATA[HTML accept attribute
You can limit the upload file type in HTML &lt;input type=&quot;file&quot;&gt; using the  attribute.
For Example, If you want to allow PDF files only, You can specify i...]]></description>
                        <content:encoded><![CDATA[<p style="text-align: center"><span style="text-decoration: underline;font-size: 14pt"><strong>HTML accept attribute</strong></span></p>
<p>You can limit the upload file type in HTML &lt;input type="file"&gt; using the  attribute.</p>
<p>For Example, If you want to allow PDF files only, You can specify it by the below code:</p>
<pre contenteditable="false">&lt;input type="file" accept=".pdf"&gt;</pre>
<p>Now, with this code, only PDF files can be uploaded.</p>
<p>If you want to to allow multiple file types e.g. . You can achieve this by the below code:</p>
<pre contenteditable="false">&lt;input type="file" accept=".png, .jpg, .jpeg"&gt;</pre>
<p> </p>
<p>And so on you can specify your desired file type to upload.</p>
<p>Also read, <a href="https://discuss.codewithbishal.com/front-end/how-to-download-a-file-using-html/" target="true">How to download files in the desired extension</a></p>]]></content:encoded>
						                            <category domain="https://discuss.codewithbishal.com/front-end/">Front-End languages</category>                        <dc:creator>CodeWithBishal-admin</dc:creator>
                        <guid isPermaLink="true">https://discuss.codewithbishal.com/front-end/how-to-allow-only-specific-file-to-allow-in-html-attribute/#post-9</guid>
                    </item>
				                    <item>
                        <title>How to allow only specific file to allow in HTML</title>
                        <link>https://discuss.codewithbishal.com/front-end/how-to-allow-only-specific-file-to-allow-in-html-attribute/#post-8</link>
                        <pubDate>Thu, 06 May 2021 09:58:14 +0000</pubDate>
                        <description><![CDATA[How to allow only specific file to allow in HTML &lt;input type=&quot;file&quot;&gt; attribute]]></description>
                        <content:encoded><![CDATA[<p>How to allow only specific file to allow in HTML &lt;input type="file"&gt; attribute</p>]]></content:encoded>
						                            <category domain="https://discuss.codewithbishal.com/front-end/">Front-End languages</category>                        <dc:creator>CodeWithBishal-admin</dc:creator>
                        <guid isPermaLink="true">https://discuss.codewithbishal.com/front-end/how-to-allow-only-specific-file-to-allow-in-html-attribute/#post-8</guid>
                    </item>
							        </channel>
        </rss>
		