The task is to load the file with HTML and JS. Code
<input type="file" class="file-for-import" /> A standard file upload form appears. I need to load only a certain type of files, for example, shp. How can i do this?
...">
The task is to load the file with HTML and JS. Code
<input type="file" class="file-for-import" /> A standard file upload form appears. I need to load only a certain type of files, for example, shp. How can i do this?
<input type='file' accept='.shp,.csv'> accept attribute, it works, but when I specify both, instead of the list of extensions in the loading window, it says "User types". How can I make the list of valid extensions visible to the user? - Mae<input type="file" class="file-for-import" accept=".csv,.shp" /> with this code, I do not see extensions in the user form. - Mae1.csv , 2.shp and 3.txt in an empty folder, only the first two will appear in the window when selected . BlackSource: https://ru.stackoverflow.com/questions/533843/
All Articles