Download/View files uploaded by users

Hi,
I have created a portal where users can upload certificates completed by them as pdf. The files are uploaded and stored in database as File descriptor object. I want to download/view the pdf uploaded by them. I used the export display as:

exportDisplay.show(<passed the filedescriptor object>,<format of file>);

But I am getting the file not found error for the given descriptor. Is this the right way I am doing or need some changes?

Thanks,
Vaishnavi

Hi,
It would be informational to see the exact error message.

One of the reasons may be - the user who tries to download the file, doesn’t have permission to read sys$FileDescriptor entity.

Hi,
I got the path where the file is getting stored. But can you tell me if I can specify the path of storage folder explicitly. Also if I deploy the war files on AWS where does the file gets saved, at which path?

Hi,

Yes, you can. See information here: Standard File Storage Implementation - CUBA Platform. Developer’s Manual

If you deploy the application to AWS, then using this file storage implementation is recommended: AWS Filestorage – CUBA Platform