Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

confiforms file field(filename contains chinese character),my app get filename can not show correct

蒋文华 February 22, 2022

@Alex Medved _ConfiForms_ 

image.pngimage.png

my app print the filename or url parameter is ???? whether or not is the encode problem???

How to solve this problem???

image.png

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
February 23, 2022

Although we send an UTF-8 encoded filename from ConfiForms I can confirm to see the same result when testing.

A workaround to suggest is to have a filename sent in addition via URL parameters

assuming the field in ConfiForms to store files is called "f" then the parameter could be something like 

filename=[entry.f.asAttachment.title.urlencode]

 (added to service url params you have now) 

(url) decoding the param value will give the original name

蒋文华 February 23, 2022

Hi @Alex Medved _ConfiForms_   this way works!  

but if we nees other fileds,how get the content???

like this??

filename=[entry.f.asAttachment.content.urlencode]
Alex Medved _ConfiForms_
Community Champion
February 23, 2022

Unless I misunderstand your pretty cryptic comment, but... to pass more field values you just add them into the "service url" as query parameters, as simple as that

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events