# File Upload failed for second time

**URL:** <https://forum.katalon.com/t/file-upload-failed-for-second-time/84314>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [February 14, 2023, 9:09am UTC](https://forum.katalon.com/t/file-upload-failed-for-second-time/84314 "2023-02-14T09:09:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 14, 2023, 7:28pm UTC](https://forum.katalon.com/t/file-upload-failed-for-second-time/84314/2 "2023-02-14T19:28:46Z")

</div>

Hi @sheeja.pillai, Check out this link:

> [@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/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/file-upload-failed-for-second-time/84314)._
