Skip to content

Commit 6dc41be

Browse files
committed
Restrict file types to images on contact form
1 parent 81855c1 commit 6dc41be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/Contact.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const Contact: React.FC = () => {
3838
placeholder="Write something.." /*style="height:200px"*/
3939
></textarea>
4040
<br />
41-
<label htmlFor="myfile">Select a file:</label>
42-
<input type="file" id="myfile" name="myfile"></input>
41+
<label htmlFor="myfile">Select a file: </label>
42+
<input type="file" id="myfile" name="myfile" accept="image/*"></input>
4343
<br />
4444
<input type="submit" value="Submit" />
4545
</form>

0 commit comments

Comments
 (0)