Adding accept attribute Answered

Hello team! 🙂

I would like add the following accept attribute to an input for a file upload that has the custom attribute ms-code-file-upload-input=FileToUpload

<input type="file" accept=".csv" />

Could you please let me know where shall I add that? Adding it in the custom attributes doesn't seem to work 🙂

Thank you!

Comments

2 comments

  • Comment author
    Julian Galluzzo
    <input type="file" ms-code-file-upload-input="FileToUpload" accept=".csv" />
    0
  • Comment author
    Luca De Angelis

    Hi Julian Galluzzo thank you! I know that, but if I add a custom attribute in webflow like accept='.csv' it doesn't actually work. I can still pass every kind of file

    Actually I noticed that I can't add that as a custom attribute because it is a reserved name!

    I added it in the javascript! 🙂 fine like this

    0

Please sign in to leave a comment.