Skip to content

Commit

Permalink
Errore nell'archiviazione di allegati alla variazione
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Sep 28, 2012
1 parent acc5592 commit 1f27d58
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -147,7 +147,10 @@ public Node storePrintDocument(OggettoBulk oggettoBulk, Report report, CMISPath

public String getContentType(String contentType, String filename){
FileNameMap fileNameMap = URLConnection.getFileNameMap();
return fileNameMap.getContentTypeFor(filename);
String result = fileNameMap.getContentTypeFor(filename);
if (result != null)
return result;
return contentType;
}

public Node storeSimpleDocument(OggettoBulk oggettoBulk, InputStream inputStream, String contentType, String name,
Expand Down

0 comments on commit 1f27d58

Please sign in to comment.