Limitation of file formats

Report a typo

Write a form that can only accept files with the .png, .svg, and .gif extensions. That is, when selecting a file, only files with these extensions should be displayed.

Example of using the attribute: accept="image/*, index/html, text/css"

File browser window with three image files and gif, png, svg extensions

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Upload</title>
</head>

<body>
<h2>File and image upload</h2>
<form method="POST" enctype="multipart/form-data">
<!--add the code here-->
</form>
</body>

</html>



Completed 0 of 1
Added a file type limiter
___

Create a free account to access the full topic