# Upload File with Choose File and Upload buttons on the UI

**URL:** <https://forum.katalon.com/t/upload-file-with-choose-file-and-upload-buttons-on-the-ui/18315>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 25, 2019, 5:29pm UTC](https://forum.katalon.com/t/upload-file-with-choose-file-and-upload-buttons-on-the-ui/18315 "2019-01-25T17:29:48Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [May 15, 2021, 2:24am UTC](https://forum.katalon.com/t/upload-file-with-choose-file-and-upload-buttons-on-the-ui/18315/6 "2021-05-15T02:24:36Z")

</div>

Give this a try…

> [@How-to use ‘sendKeys’ or 'File Upload' to upload files](http://forum.katalon.com/t/how-to-use-sendkeys-or-file-upload-to-upload-files-when-the-input-type-file-is-hidden/54758):
>
> Note: Using ‘sendKeys’ or ‘File Upload’ for file uploads will ONLY work with //input[@type,‘file’] objects. So what do you do when an //input[@type,‘file’] object is hidden? How-to use ‘sendKeys’ or ‘File Upload’ to upload files when the //input[@type,‘file’] is hidden. Special thanks to @Russ_Thomas for his post on using document.querySelectorAll(“input[type=file]”) for finding hidden objects; which put me onto this solution. I now do NOT have to use Robot for my file uploads; which ensures m…

---

_[View the full topic](https://forum.katalon.com/t/upload-file-with-choose-file-and-upload-buttons-on-the-ui/18315)._
