914
Views
4
Comments
Solved
Download Binary Data with different types
Question

I have a binary list for my web application, and I want to download the file by clicking on it. I linked the file name to a screen Action, and I used the download as following, it downloads file of type File, and I can't open pdf file, how to handle this with multiple types.


2019-05-22 11-30-09
Marcelo Ferreira
Solution

Hi Abeer,

But why are you saving the file name without extensions? You need to save also the name with the extension. if you need to show on the app the name without the extension you should have another field for it.

Regards,

Marcelo

2022-07-21 14-07-25
Abeer elAssal
 
MVP

Marcelo Ferreira wrote:

Hi Abeer,

But why are you saving the file name without extensions? You need to save also the name with the extension. if you need to show on the app the name without the extension you should have another field for it.

Regards,

Marcelo

I got your point now, it was my fault, as I was changing the file name while uploading, it's fixed once I used teh name from the up-loader as it is.


2019-05-22 11-30-09
Marcelo Ferreira

Hi Abeer,

How those files are inserted on the application? the normal approach is to also save the type when you save them on the database. If its insert through upload widget you can get the type from the widget.

Regards,

Marcelo

2022-07-21 14-07-25
Abeer elAssal
 
MVP

Marcelo Ferreira wrote:

Hi Abeer,

How those files are inserted on the application? the normal approach is to also save the type when you save them on the database. If its insert through upload widget you can get the type from the widget.

Regards,

Marcelo

Thanks for your reply, I did that and saved the type as well, I present it on table list to make sure data is uploaded okay, now when i download these files it's downloaded without extensions (.jpg ... pdf etc) so i can't open it


2019-05-22 11-30-09
Marcelo Ferreira
Solution

Hi Abeer,

But why are you saving the file name without extensions? You need to save also the name with the extension. if you need to show on the app the name without the extension you should have another field for it.

Regards,

Marcelo

2022-07-21 14-07-25
Abeer elAssal
 
MVP

Marcelo Ferreira wrote:

Hi Abeer,

But why are you saving the file name without extensions? You need to save also the name with the extension. if you need to show on the app the name without the extension you should have another field for it.

Regards,

Marcelo

I got your point now, it was my fault, as I was changing the file name while uploading, it's fixed once I used teh name from the up-loader as it is.


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