258: TabMan - the files associated to the resources are downloaded without extension
Task-Url: https://support.d4science.org/issues/258 Added extension to Name of Resource by mime type git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@115424 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
de1bc48388
commit
ffe00f2cba
|
@ -702,7 +702,7 @@ public enum MimeTypeSupport {
|
|||
|
||||
public static MimeTypeSupport getMimeTypeSupportFromExtension(String ext){
|
||||
for(MimeTypeSupport m:MimeTypeSupport.values()){
|
||||
if(m.getExtension().compareTo(ext)==0){
|
||||
if(m.getExtension().compareToIgnoreCase(ext)==0){
|
||||
return m;
|
||||
}
|
||||
}
|
||||
|
@ -711,7 +711,7 @@ public enum MimeTypeSupport {
|
|||
|
||||
public static MimeTypeSupport getMimeTypeSupportFromMimeName(String mimeName){
|
||||
for(MimeTypeSupport m:MimeTypeSupport.values()){
|
||||
if(m.getMimeName().compareTo(mimeName)==0){
|
||||
if(m.getMimeName().compareToIgnoreCase(mimeName)==0){
|
||||
return m;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue