uploadedFile);
BufferedInputStream attachmentInputStream = new BufferedInputStream(
attachmentFileInputStream);
try {
try {
conn.storeObjectAs(bucket, uploadedFile, mimeType, key);
URL pathToFile = new URL(conn.getStorageURL() + "/" + bucket + "/" + key);
attachment.setCfPath(pathToFile.toExternalForm());
attachment.setWebPath(pathToFile.getPath());
}
catch (FilesException e) {