File Selection in monaca

Asked 2 years ago, Updated 2 years ago, 42 views

Ask the user to select the file and
I am making an app to get the address of that file.

Create a button to open the file selection dialog in
document.getElementById("temp").value
I'd like to get the address of the file in
When you actually select a file on your smartphone
The address is fakepath and cannot be retrieved.
Is there another solution?

javascript ios android monaca html

2022-09-30 11:33

1 Answers

It is not possible to obtain an address from the browser due to security reasons.

using the camera plug-in, file plug-in, etc. Ask them to select a file.


2022-09-30 11:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.