Upload/Download files
Hi everybody,
I am a new user who is enjoying a lot Outsystems platform.
I am completely new to the world of programming but I am trying to create a simple DB with the Agile Platform.
My database has already the basics which I managed to put following the online tutorial, but now I would like to add some more feature.

In particular I would like to add the option to upload and download files for each entry in the database.
I didn't find any tutorial on this, I saw that there is a widget to upload a file, but not one to download.

I would appreciate if someone could help in setting up the upload/download function.

Many thanks in advance,
Stefano
mvp_badge
MVP
Solution

Khushboo Agrawal wrote:

Tiago Simões : can u please send the same oml ie UploadDownloadFiles.oml in outsystem 11 version.Thanks in advance

 

 Hi Khushboo,

this is demo for upload and download file in OS 11 Reactive.

create a excel file with same as "CustomerDetails" Entity and upload and download


Regards

Rahul Sahu

Exceltorecordlist.oml

Hi Stefano,

Welcome to the OutSystems Community.
To add file to an entity just add attributes for the filename and filecontent (type BinaryData).
Then, as you say, you can use the Upload widget on a web screen to allow the user to upload a file.
To download it you can use the Download element.

You can check the eSpace in attachment for an example.

Cheers,
Tiago Simões
PS: A good way to learn is also to take a look into these apps

UploadDownloadFiles.oml

Tiago Simões : can u please send the same oml ie UploadDownloadFiles.oml in 7.0.1.7 version
Hi n p,

You can find a 7.0 version in atachment.
One important thing to note is to try not use the binarycontent files from the preparation queries. Instead of that it is better to get the record again in the screen actions in order to improve performance.

Cheers,
Tiago Simões

DocumentUploadDownlo.oml

Hi Tiago,


Can you please attach the same file for 9.0.1.25 version.


Thank you very much.


Christopher
Hi Christopher,

That last version seems to work correctly on 9.0.1.25 (as long as you upgrade it with Service Studio).

Cheers,
Tiago Simões
Tiago Simões wrote:
Hi Christopher,

That last version seems to work correctly on 9.0.1.25 (as long as you upgrade it with Service Studio).

Cheers,
Tiago Simões
 
 
that is very nice one, could you please put a video on how  you make a webpage like this.
many thanks
Hi Tiago,

Many Thanks. I can open it now...

Best Regards,

Christopher
Hi Tiago,

For the Upload button, in the DocumentFile_Edit Web Screen, can I use AJAX Method instead of SUBMIT? I still have much to learn on this platform.

Thank  you very much.

Kind regards,

Christopher
Hi Christopher,

No, Upload widget can only work with submit.

Cheers,
Tiago Simões
I have tried with all the above steps.... i  can choose my document,but if once i press submit button my attachment gets disappear... why it is? 
Hi... I have done uploading and downloading functions in my application..! but if i attach a document without uploading..... it takes the prevoius uploaded file..... i have attached my oml........
trail.oml

Hi

Is it possible to do upload file action in table records? I tried but fail to get the file... 

Does anyone has any idea?

Thanks.

XiaoHui wrote:

Hi

Is it possible to do upload file action in table records? I tried but fail to get the file... 

Does anyone has any idea?

Thanks.

Hi XiaoHi,

Did you able to sort out the issue with table records? I have same requirement. 

Thanks,

Siva


sivaramakrishna repalle wrote:

XiaoHui wrote:

Hi

Is it possible to do upload file action in table records? I tried but fail to get the file... 

Does anyone has any idea?

Thanks.

Hi XiaoHi,

Did you able to sort out the issue with table records? I have same requirement. 

Thanks,

Siva


Hi Siva

Sorry about that, it has been a year ago when I encountered this issue. I can't recall whether did I solve it or have any workaround. I would suggest you to create a new post for your question. 

Apologize that couldn't help in this case.

Thanks.

XiaoHui

Hi Siva

I did a quick try, it is possible to do upload and download in a table record. You have to specific the AttachmentId in the upload function, then you GetAttachmentForUpdate, assign the value accordingly and lastly do the Update. Hope this help and it's what you want to achieve. 

Regards

XiaoHui




Luiz  Guimarães

XiaoHui wrote:


Hi Siva

I did a quick try, it is possible to do upload and download in a table record. You have to specific the AttachmentId in the upload function, then you GetAttachmentForUpdate, assign the value accordingly and lastly do the Update. Hope this help and it's what you want to achieve. 

Regards

XiaoHui






I need to do this but I have not yet


Hi,


One question, what you put in the first image?


When download file

I want to encode file name with some character UTF-8 like Japanese, Chinese...

How can I do this?

Thanks,

Tiago Simões : can u please send the same oml ie UploadDownloadFiles.oml in outsystem 11 version.Thanks in advance

mvp_badge
MVP
Solution

Khushboo Agrawal wrote:

Tiago Simões : can u please send the same oml ie UploadDownloadFiles.oml in outsystem 11 version.Thanks in advance

 

 Hi Khushboo,

this is demo for upload and download file in OS 11 Reactive.

create a excel file with same as "CustomerDetails" Entity and upload and download


Regards

Rahul Sahu

Exceltorecordlist.oml

Rahul Sahu wrote:

Khushboo Agrawal wrote:

Tiago Simões : can u please send the same oml ie UploadDownloadFiles.oml in outsystem 11 version.Thanks in advance

 

 Hi Khushboo,

this is demo for upload and download file in OS 11 Reactive.

create a excel file with same as "CustomerDetails" Entity and upload and download


Regards

Rahul Sahu

Thanks Rahul!

It helped me a lot :) 

 

mvp_badge
MVP

Welcome Elsie,

Cheers' 

Hello, 


I want to be able to upload and store files (PDF or Word document) such as resumes in my app and be able to download it to update it. Which module can I use in Outsystems 11? Thanks KR

mvp_badge
MVP

Hi Julien.

You want store file on Entity or want upload file on any space like server space or any documentry.

I think you need to open new post so other members also can help you.


Regards

Rahul

In this post you can find how to download, i test it and works fine:

https://www.outsystems.com/forums/discussion/36419/download-files-option-for-the-application/

To store the data you only need to create an entity like this:

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