Hi Gunnar,

The current implementation only supports static filename:

   protected String getFilename(AccessibleObject method)
   {
      PartFilename fname = method.getAnnotation(PartFilename.class);
      return fname == null ? null : fname.value();
   }

Maybe we can support something like @PartFilename("${my.filename.prop}"), and then you can set the property.

I’ll check this with team and let you know our progress.




在 2021年10月28日 下午4:42:01, Gunnar Schmid (gunnar.schmid+redhat@gmail.com) 写到:

Hello,
I'm using Resteasy client to upload files to a service.

I can set the filename using the @PartFilename annotation:

@FormParam("file")
@PartType(MediaType.APPLICATION_OCTET_STREAM)
@PartFilename("staticfilename.bin")
public InputStream file;

But this sets the filename at compile time - how can I make this dynamic?
_______________________________________________
resteasy mailing list -- resteasy@lists.jboss.org
To unsubscribe send an email to resteasy-leave@lists.jboss.org