[File Plugin] Save file is not working as expected
file-plugin
Mobile icon
Forge component by Platform Maintenance
Application Type
Mobile

Hi Team,

I have an requirement like to download pdf file in android or iOS device. But I tried to use save file action from the file plugin but its not getting download in device. 


Regards,

Indumathy V

Hi Indumathy V

if you are only looking for file download in mobile you can use InAppBrowserPlugin with File URL shared workaround below,


Also in case of file plugin we just need to take care the below configurations on save file action:-


Do let me know if this solve your query...

Hi Deepa,

I tried the second method you have given its not working. If I click on the download button PDF file should get download in device.

Please let me know any solution for this issue.


Regards,

Indumathy V

Hi Indumathy V,

     If you are working in mobile app of outsystems, then we can open the file using PDF viewer installed in mobile with help of the file plugin or with any other source opener installed in device. And then we would be able to download by the native option provided. PFA 

    

Download option.jpeg

Hi Chokalingam,

Thanks for your reply. But is there any option to directly download the pdf file in mobile without viewing it?


Regards,

Indumathy V

Hello Indumathy,

I believe the File Transfer Plugin provides the functionality you are looking for. Additionally, it works asynchronously and does not block your application (which is great when downloading large files).

Regards,

Rui

Hi Rui Lopes,

I have tried File transfer plugin and also file plugin to directly download the file in mobile. But that's not working. 


Regards,

Indumathy V

Hello Indumathy,

Can you be a bit more specific about what's not working? I have been using the File Transfer Plugin to successfully download audio files directly to the mobile device.

Regards,

Rui

Hi Rui,

I have tried using File plugin and File Plugin to download the file in mobile application. But its not working for me. Can you share recording or oml for which you tried?


Thanks & Regards,

Indumathy V

Hi Indumathy,

Please take a look at the File Sample App as it provides examples and demos for the File, File Transfer and File Viewer component.

Regards,

Rui

Hi Indumathy V,   any specific error you are getting? if any please share ,

 if no error can you display the output parameter "uri" and confirm where the file being saved

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