We have to use the HTML file upload input so that users are able to upload images or any type of files. In this tutorial we will just focusing on image input so we just want to make sure images are uploaded so to do that we will use the below input tag.
You can use the above code to display the uploaded image in HTML if you have tested this you can see the upload button then you can only select images after choosing one you can see the preview of the image on the website.
How to hide file upload button in HTML and replacing with text
Above I have shown how to display image with the regular upload button if you don’t like that button you can change it to text it is very easy you just have to make some small changes you can copy the below code and replace with the other one’s.
You just have to replace it with the regular file upload input and you will see a text which say upload Image instead of a ugly button.
Want more article guides like this then stay with us by joining our Telegram channel for latest updates of our guides and more – Join Telegram Channel.
Thank you for reading, Have a nice day