12
Views
3
Comments
Solved
[File Plugin] WriteFile in FilePlugin does not ask for permission to access storage
Question
file-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile
Service Studio Version
11.55.49 (Build 64453)

Hi,


I need to show binary data (doc,pdf,jpg,png..) , so i use File plugin to save as file and the using FileViewerPlugin to open the saved file.

I using the new File plugin ver.4.0.1  (2 Sep ), installed the apk in my phone (android) it's not save the file in the mobile storge .

i think the problem with permission - but it's not ask me for access permission .

my question is why it's not ask for access permission to storage ?

and why the WriteFile.Success return true ?

Thanks


Capture.PNG
2024-07-12 05-57-50
Gourav Shrivastava
Champion
Solution

Hello @Amin Medlij 

Are you getting any output in Uri ?

because it is the local URI that helps you to retrieve the file after saving 

2025-01-10 11-40-52
Pedro Gustavo Bilro

Hey Amin, can you provide more details on on your setup?

- MABS Version
- Android Operating System version with which you tested
- A screenshot of how you were calling the File Plugin's client action(sI?

2024-07-12 05-57-50
Gourav Shrivastava
Champion
Solution

Hello @Amin Medlij 

Are you getting any output in Uri ?

because it is the local URI that helps you to retrieve the file after saving 

UserImage.jpg
Amin Medlij

Thanks WriteFile.Uri fixed the problem.


The WriteFile.Uri returned the file path and opened it using FileViewerPlugin.

I expected it to ask for permission, I tested on two phones and it worked fine.

There was no permission issue, as i thought...

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.