I have created a method that upload a file to the repository, passing a String with mimetype of the file, but I want to overload this method being allowed to pass the file like argument, and after the file to get its name, and his mimetype.
Somebody can help me, I have seen the MimetypeMap class , the Map contains the extensions and mimetypes . Somebody can say to me like using this class to obtain mimetype of the file that I want to upload.
Thank´s
Alfredo