1

I want a user to upload .csv file using file browse of html. I have used file input type but the user can upload any type of files with that. What i want is a user can only browse and see .csv file. How can i do that?? I have read about accept parameter but it is for audio/video/images. How can i do it with .csv?

Upload new Question Bank(.csv):-<input type="file" name="file">

1 Answer 1

1

Use the accept attribute:

Upload new Question Bank(.csv):-<input type="file" name="file" accept=".csv" >
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.