Update FromPDFController.java
This commit is contained in:
parent
ae638eec94
commit
cada1fd80f
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ public class FromPDFController {
|
|||
private String getMediaType(String imageFormat) {
|
||||
if(imageFormat.equalsIgnoreCase("PNG"))
|
||||
return "image/png";
|
||||
else if(imageFormat.equalsIgnoreCase("JPEG"))
|
||||
else if(imageFormat.equalsIgnoreCase("JPEG") || imageFormat.equalsIgnoreCase("JPG") )
|
||||
return "image/jpeg";
|
||||
else if(imageFormat.equalsIgnoreCase("GIF"))
|
||||
return "image/gif";
|
||||
|
|
Loading…
Reference in a new issue