QFile with class component #8834
Unanswered
szekelyisz
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, consider the following snippet:
How to initialize
file
? It can't beundefined
, otherwise the class component won't pick it up ("not defined on the instance but referenced during render"). If it'snull
, the picker is not shown. QFile expects it to be a File, FileList, or Array (in my case it has to be a File, because I want a single file picker). If I putnew File([], 'AnyFile')
there, the picker will display "AnyFile" by default that I don't like. Any suggestions? Thanks!Beta Was this translation helpful? Give feedback.
All reactions