Wolf War
Wolf War

Reputation: 1553

input type="file" - accept files without any extension

how do I accept files without any extension?
I need to accept .json and no-extension files
I tried

<input type="file" accept=".json, . "/>  

and some variations of it with dot and empty space, but none of them work

Upvotes: 6

Views: 3079

Answers (1)

user4963716
user4963716

Reputation:

There is no such feature in HTML file input yet.If you want it you can develop this feature either by serverside progamming or javascript validation. Accept all format files and Validate format and find desired formats and restrict all other formats.

Upvotes: 2

Related Questions