Can we make an html input file with the "hidden" attribute? #202
Closed
slorion194
started this conversation in
General
Replies: 2 comments
-
You can do like this; {{ html()->file('upload')->class('account-file-input')->attribute('hidden')->accept('image/png, image/jpeg') }} and output is this; <input class="account-file-input" type="file" name="upload" id="upload" hidden accept="image/png, image/jpeg"> |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's work. Thanks a lot |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I try to reproduce this :
<input type="file" id="upload" class="account-file-input" hidden accept="image/png, image/jpeg" />
I have this but attribute "hidden" missing :
{{ html()->input('file','upload', null)->class('account-file-input')->accept('image/png, image/jpeg') }}
How i can do this?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions