Skip to content

Commit

Permalink
#136 handle correctly file upload on new card creation, thanks @majug…
Browse files Browse the repository at this point in the history
…urci for the hint
  • Loading branch information
syjer committed Apr 1, 2020
1 parent 4df5f83 commit a96d70a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/lavagna/web/api/CardDataController.java
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public List<String> uploadNewCardFiles(@RequestParam("files") List<MultipartFile
String digest = DigestUtils.sha256Hex(Files.newInputStream(p));
String contentType = file.getContentType() != null ? file.getContentType() : "application/octet-stream";

cardDataService.createFile(digest, files.size(), fileIs, contentType);
cardDataService.createFile(digest, Files.size(p), Files.newInputStream(p), contentType);

LOG.debug("file uploaded! size: {}, original name: {}, body-type: {}, by user: {}", file.getSize(),
file.getOriginalFilename(), file.getContentType(), user.getId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
templateUrl: 'app/components/board/controls/board-controls.html',
controller: function (BulkOperationModal, BulkOperations, Project, $mdDialog) {
var ctrl = this;
ctrl.createColumnTooltipVisibility = false;

ctrl.$onChanges = function (change) {
if (change.columns && change.columns.currentValue) {
Expand Down

0 comments on commit a96d70a

Please sign in to comment.