How to get file path from Upload widget in Mobile

Hi,


I would like to know if there is a way to get the file path from Upload widget?

I know there are a file name and file content associated with the Upload component.

Because I'm using this plugin: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-media/ to interact with the uploaded audio file. However, this plugin seems not able to work with the file content directly (only file path is available).


What I'm trying to achieve:

1. Use Upload component and let the user choose 1 audio file

2. Get the duration of selected audio using https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-media/

The problem is #1 => Return file name & file content. #2 => Work with file path only


Thanks in advance!

Hi Minh,

Did you consider to use the https://www.outsystems.com/forge/component-overview/1633/file-plugin to access the media file for playing, because the file is already on your device and the plug-in to play it will need it on your device too. You can skip the upload.

Regards,

Daniel

Daniël Kuhlmann wrote:

Hi Minh,

Did you consider to use the https://www.outsystems.com/forge/component-overview/1633/file-plugin to access the media file for playing, because the file is already on your device and the plug-in to play it will need it on your device too. You can skip the upload.

Regards,

Daniel

 Hi Daniel,

Sorry for the unclear question. I've updated the question.