So far, I have made up just the tool below:
upload3.py $report1 $
report1.id $__new_file_path__
#if (len(str($url_paste).split(','))>1):
#for $i in $url_paste:
$i
#end for
#else:
$url_paste
#end if
</command>
<inputs action="link to" check_values="false" method="post">
</inputs>
<request_param_translation>
<request_param galaxy_name="URL_method" remote_name="URL_method" missing="post" />
<request_param galaxy_name="URL" remote_name="URL" missing="" />
<request_param galaxy_name="url_paste" remote_name="mclfile[]" missing="txt" />
</request_param_translation>
<outputs>
<data format="txt" name="report1" />
</outputs>
Using this config file I'm able to import multiple files in the galaxy history.
But I can't set a name to distinguish them.
I am not sure how to proceed.