You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Vincent Daburon <vd...@gmail.com> on 2022/05/19 15:53:38 UTC
upload file with accent or special character, modify http sampler to choose the filename
Hi,
I propose to add a new column in the Files Upload part of the http sampler.
In this column a list of choices with the following choices
filename=<fileName>
filename=<URLEncoder.encode(fileName,"UTF-8")>
filename=<fileName>; filename*=UFT-8'' <URLEncoder.encode(fileName,"UTF-8")>
The fileName is the result of :
String fileName = org.apache.commons.io.FilenameUtils.getName(<File Path>)
What do you think about this proposition ?
Regards.
Vincent DAB.