Skip to content

Commit

Permalink
Possible fix for #10
Browse files Browse the repository at this point in the history
  • Loading branch information
simmac committed Apr 4, 2016
1 parent d28f0d0 commit d1905d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URLConnection;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
Expand Down Expand Up @@ -217,7 +218,7 @@ public String sendFileMessage(String threemaId, File fileMessageFile, File thumb
EncryptResult fileMessage = CryptTool.encryptFileMessage(
encryptResult,
uploadResult,
Files.probeContentType(fileMessageFile.toPath()),
URLConnection.guessContentTypeFromName(fileMessageFile.getName()),
fileMessageFile.getName(),
(int) fileMessageFile.length(),
uploadResultThumbnail,
Expand Down

0 comments on commit d1905d2

Please sign in to comment.