Give WFileUpload path to file
Added by Dennis Schenzow over 6 years ago
Hi Guys,
is it possible to use the WFileUpload widget without the file picker?
I want to give it a string (local path to file), which file to upload.
Thanks,
Dennis
Replies (2)
RE: Give WFileUpload path to file - Added by Roel Standaert over 6 years ago
Hi,
It's not possible for a good reason: if browsers allowed that then malicious websites could just grab random files off of people's computers.
Strictly speaking there is a way to do uploads without a file picker, and that's to drop the file onto a WFileDropWidget, but in either case the user has to somehow specify which file it wants to upload.
RE: Give WFileUpload path to file - Added by Dennis Schenzow over 6 years ago
Thanks for the fast answer,
My goal was to have an additional WLineEdit where the user can write down the file path.
It makes sense that it is impossible :)
Thanks,
Dennis