alnorris / file-dialog

Trigger the upload file dialog directly from your code easily.
60 stars 12 forks source link

How do you know the directory? #14

Open RobertGary1 opened 4 years ago

RobertGary1 commented 4 years ago

The object doesn't appear to include the directory. If I want to load the file how do I know where it is?

parallacks commented 3 years ago

I know you've probably moved on to another package but for posterity, the FileList object that is returned is an array of File objects. Each File object has an attribute called path that has the absolute path to the selected. You should be able to use this to load the file.