Size submit button text html6/28/2023 ![]() ![]() A file object is returned which contains the details(such as name, file size etc) of the file uploaded. In the javascript file, I listen to the change event on the original file upload button(which we have hidden). What I did was to include a span tag (with an id of file-chosen) right after our custom file upload button. Unfortunately, we don't get to see that with our custom button. With the default file upload button, there is a no file chosen text beside the button (scroll up to the first codepen window), which gets replaced with the name of the file we will be uploading. Now we have this beautiful custom button, which actually works like the original file upload button:Īt this point, we are done. Enter fullscreen mode Exit fullscreen mode
0 Comments
Leave a Reply. |