[DEV] corect extension chacker ...
This commit is contained in:
parent
55df3e175f
commit
862f6565fe
@ -21,11 +21,11 @@ public class Front {
|
||||
return "";
|
||||
}
|
||||
private Response retrive(String fileName) throws Exception {
|
||||
String filePathName = ConfigVariable.getSsoFolder() + File.separator + fileName;
|
||||
String filePathName = ConfigVariable.getFrontFolder() + File.separator + fileName;
|
||||
String extention = getExtension(filePathName);
|
||||
String mineType = null;
|
||||
System.out.println("try retrive : '" + filePathName + "' '" + extention + "'");
|
||||
if (extention.equalsIgnoreCase("")) {
|
||||
if (!extention.equalsIgnoreCase("")) {
|
||||
if (extention.equalsIgnoreCase("jpg") || extention.equalsIgnoreCase("jpeg")) {
|
||||
mineType = "image/jpeg";
|
||||
} else if (extention.equalsIgnoreCase("gif")) {
|
||||
|
@ -27,7 +27,7 @@ public class FrontSSO {
|
||||
String extention = getExtension(filePathName);
|
||||
String mineType = null;
|
||||
System.out.println("try retrive : '" + filePathName + "' '" + extention + "'");
|
||||
if (extention.equalsIgnoreCase("")) {
|
||||
if (!extention.equalsIgnoreCase("")) {
|
||||
if (extention.equalsIgnoreCase("jpg") || extention.equalsIgnoreCase("jpeg")) {
|
||||
mineType = "image/jpeg";
|
||||
} else if (extention.equalsIgnoreCase("gif")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user