-
-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a real path of file type input #87
Comments
Okay got the solution it's simply import { open, save } from "tauri/api/dialog"
async handler(){
let filepath = await open()
} dialog is all for this. RTFD 🤦♂️ |
I had the same issue when I was trying to drag and drop a file. Could you reopen this issue? |
It seems winit supports this feature. |
@nothingismagick Could you move this ISSUE also to |
@wusyong Is this feature implemented? |
Ah sorry, closed this because we now have a file drop handler for it. |
@wusyong Thank you for the line! |
Yes, it's the absolute path. |
Hi, is there an example of how I would handle dragging and dropping files using the JS Tauri API? I have a React component that utilizes the |
@mihirsamdarshi |
@FabianLars thank you! |
Is your feature request related to a problem? Please describe.
I am trying to get a the real path of file selected in
<input type="file" id="myFile">
but I dunno how to.I tried
document.getElementById("myFile").files
which gives array ofFile
which contains following information.Describe the solution you'd like
Electron adds a
path
property inFile
object. I don't know how exactly it is happening and will it be possible in Tauribut this seems to be one possible solution to me.
https://github.com/electron/electron/blob/master/docs/api/file-object.md
The text was updated successfully, but these errors were encountered: