Skip to content

Commit

Permalink
adding image
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlong committed Nov 24, 2011
1 parent 7516ce1 commit 3baea5e
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -109,6 +109,9 @@ public String attachReceipt(@RequestParam("reportId") Long reportId,
try {
byte[] bytesForImage = file.getBytes();
String ext = findExtensionFromFileName(file.getOriginalFilename());
if(ext!=null ){
ext = ext.trim().toLowerCase();
}
String receiptKey = service.attachReceipt(reportId, expenseId, ext, bytesForImage);
return receiptKey;
} catch (Throwable th) {
Expand Down

0 comments on commit 3baea5e

Please sign in to comment.