# BR: FileChooser:: browseForFileToOpen previewComponent no longer works on Windows

**URL:** <https://forum.juce.com/t/br-filechooser-browseforfiletoopen-previewcomponent-no-longer-works-on-windows/42254>\
**Category:** Windows\
**Created:** [October 15, 2020, 7:07pm UTC](https://forum.juce.com/t/br-filechooser-browseforfiletoopen-previewcomponent-no-longer-works-on-windows/42254 "2020-10-15T19:07:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [October 15, 2020, 7:07pm UTC](https://forum.juce.com/t/br-filechooser-browseforfiletoopen-previewcomponent-no-longer-works-on-windows/42254/1 "2020-10-15T19:07:19Z")

</div>

BR: FileChooser:: browseForFileToOpen previewComponent no longer works on Windows

Code: [https://github.com/FigBug/juce\_bugs/blob/master/FileChoose/Source/MainComponent.cpp](https://github.com/FigBug/juce_bugs/blob/master/FileChoose/Source/MainComponent.cpp)

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [October 15, 2020, 7:10pm UTC](https://forum.juce.com/t/br-filechooser-browseforfiletoopen-previewcomponent-no-longer-works-on-windows/42254/2 "2020-10-15T19:10:04Z")

</div>

I see the windows preview, shouldn’t I see a bug pink rectangle I created:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/7/7bc718623976ed952d3f95c0fb0a0fb7f2129096.png)

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [October 15, 2020, 8:04pm UTC](https://forum.juce.com/t/br-filechooser-browseforfiletoopen-previewcomponent-no-longer-works-on-windows/42254/3 "2020-10-15T20:04:40Z")

</div>

This is a known issue: [JUCE6: Problems using native file chooser and FilePreviewComponent](https://forum.juce.com/t/juce6-problems-using-native-file-chooser-and-filepreviewcomponent/42182)

The tl;dr is that we switched to the newer IFileChooser API, which looks a bit more modern and has nice features like the quick access pane and search, but which doesn’t support the hooks API which we used to use for custom preview components.

I should be able to investigate a fix next week.

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [October 15, 2020, 8:35pm UTC](https://forum.juce.com/t/br-filechooser-browseforfiletoopen-previewcomponent-no-longer-works-on-windows/42254/4 "2020-10-15T20:35:18Z")

</div>

Ok, that would be great thanks.

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [October 20, 2020, 10:26am UTC](https://forum.juce.com/t/br-filechooser-browseforfiletoopen-previewcomponent-no-longer-works-on-windows/42254/5 "2020-10-20T10:26:15Z")

</div>

I’ve now updated the win32 FileChooser so that it will use the old-style window with hooks support if the user requests a custom preview component, but will use the new-style window otherwise.

> <https://github.com/juce-framework/JUCE/commit/2b03936461961bc4a9364c56247fc3de53cfe1d0>
