private String getFileName ( MultivaluedMap < String , String > header ) { String [ ] contentDisposition = header . getFirst ( "Content-Disposition" ) . split ( ";" ) ; for ( String filename : contentDisposition ) { if ( ( filename . trim ( ) . startsWith ( "filename" ) ) ) { String [ ] name = filename . split ( "=" ) ; String finalFileName = name [ 1 ] . trim ( ) . replaceAll ( "\"" , "" ) ; return finalFileName ; } } return "unknown" ; }
get uploaded filename is there a easy way in RESTEasy?