public static void putMetaDatas ( Map < String , Object > metadatas , String contentType , String fileName ) { metadatas . put ( MULTIPART_FLAG , true ) ; if ( isNotBlank ( contentType ) ) { metadatas . put ( CONTENT_TYPE , contentType ) ; } if ( isNotBlank ( fileName ) ) { metadatas . put ( FILENAME , fileName ) ; } }
Puts multipart metadata informations into the given metadata map