cancel
Showing results for 
Search instead for 
Did you mean: 

File Upload/Download Problem

adil_gndz
Explorer
0 Kudos

Hi,

I have a fileupload button. The attributes type is XSTRING, which i bound it with "data" property of download.

When i download this file with "download" element, it comes in a zip file and as XML files. Only the jpg files are downloaded correctly.

How can i solve this?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Are you setting the MIME type property correctly? What kind of content are you trying to download?

Answers (1)

Answers (1)

adil_gndz
Explorer
0 Kudos

It is solved.

Pramanan
Active Participant
0 Kudos

hi Adil,

Could you please share with me how it get resolved.Because i am also facing trouble in uploading file and downloading using file upload and downlaod ui element.

i was still struggling in uploading and downloading.

Your inputs will be much more helpful to me.

Thanks,

Ramanan

Former Member
0 Kudos

Hi Adil,

Can you please share your solution with evry1.

Thank you.

adil_gndz
Explorer
0 Kudos

Hi,

I am so sory for my very late answer.

If you want to upload/download files, you should have a node which includes attributes

(attribute names are just example 😞

1) filename(type: for example afilename),

2)mimetype (type : string),

3) file(type : a data element with type 'RAWSTRING').

You must match your fileupload element's attributes with them:

"DATA" attribute --> file ,

"fileNAME" attribute--> filename,

"mimeTYPE" attritube -->mimetype.

When you want to download this file, you should put a filedownload element and match this element's attributes with the node's attributes which i described above.