# HTMLViewer and file uploads on MacOS

**URL:** <https://forum.xojo.com/t/htmlviewer-and-file-uploads-on-macos/67964>\
**Category:** Bugs and Feature Requests\
**Created:** [January 13, 2022, 7:02pm UTC](https://forum.xojo.com/t/htmlviewer-and-file-uploads-on-macos/67964 "2022-01-13T19:02:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Bronson1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@Daniel\_Bronson1](https://forum.xojo.com/u/Daniel_Bronson1)\
**Post date:** [January 13, 2022, 7:02pm UTC](https://forum.xojo.com/t/htmlviewer-and-file-uploads-on-macos/67964/1 "2022-01-13T19:02:05Z")

</div>

Feedback Case Number: 42744

It’s been 6 years since this bug was filed and verified, and as far as I can tell there has been no interest in fixing it. I was going great guns on a quickie app for work until _(surprise)_ I hit a showstopper. Now my project is no longer a quickie. Again. Sigh.

If I have to resort to diving into Cocoa and declaring it all, this will be the opposite of quick. It would be great if this project could be quick again. Has anyone come up with a workaround that **DOES NOT** — I repeat: **DOES NOT** — involve a plugin?

---

<div class="post-metadata">

**Author:** ![Daniel\_Bronson1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@Daniel\_Bronson1](https://forum.xojo.com/u/Daniel_Bronson1)\
**Post date:** [January 13, 2022, 7:31pm UTC](https://forum.xojo.com/t/htmlviewer-and-file-uploads-on-macos/67964/3 "2022-01-13T19:31:02Z")

</div>

I believe I was very clear about not having my thread spammed by ads for plugins. Thanks.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [January 13, 2022, 7:36pm UTC](https://forum.xojo.com/t/htmlviewer-and-file-uploads-on-macos/67964/4 "2022-01-13T19:36:20Z")

</div>

it may be achieved via declares if you are interested in that.  
But that may involve patching an objective-C class on macOS.

---

<div class="post-metadata">

**Author:** ![Daniel\_Bronson1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@Daniel\_Bronson1](https://forum.xojo.com/u/Daniel_Bronson1)\
**Post date:** [January 13, 2022, 7:54pm UTC](https://forum.xojo.com/t/htmlviewer-and-file-uploads-on-macos/67964/5 "2022-01-13T19:54:17Z")

</div>

I consider calling into Cocoa a last resort in this instance. I’m hoping to avoid having to tear into WKUIDelegate unless I absolutely have to, although it’s looking like I’ll have to. My hope was that somewhere along the way someone out there came up with something workable in native Xojo code (or even some clever Javascript) that could get me back on track quickly.

If not, I can probably work out the declares on my own. I have decent experience there. I just didn’t want to have to take the time to implement something which (IMO) should already be implemented, since it works on other platforms.

However, if anyone has done this already and was willing to share, (or maybe it’s already here and I just didn’t find it,) I certainly would not turn down the help.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [January 13, 2022, 8:13pm UTC](https://forum.xojo.com/t/htmlviewer-and-file-uploads-on-macos/67964/6 "2022-01-13T20:13:50Z")

</div>

Just because not everyone has feedback installed, a quick summary of #42744

42744 - HTMLViewer with \<input type=“file”\> does not invoke file dialog on MacOS

> **February 26, 2016 - 5:24pm UTC**
> 
> Steps: Using the Xojo simple browser sample application navigate to a website that offers to upload a file (you can try [W3Schools Tryit Editor](http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_file)).
> 
> When you click on the ‘Choose File’ button to select a file to upload on Windows and Linux you will be presented with a file chooser dialog. On MacOS nothing will happen. If you view the same website using Safari you will be presented with a file chooser (sheet) dialog so Safari works as expected
