Skip to content

Commit

Permalink
Avoid multiple uploads of the same file in confluence
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Jan 25, 2016
1 parent 5d6dc9a commit 6f43467
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified daux.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion libs/Format/Confluence/ContentPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function ($src, array $attributes, Raw $file) {
$filename = basename($file->getPath());

//Add the attachment for later upload
$this->attachments[] = ['filename' => $filename, 'file' => $file];
$this->attachments[$filename] = ['filename' => $filename, 'file' => $file];

return $this->createImageTag($filename, $attributes);
}
Expand Down

0 comments on commit 6f43467

Please sign in to comment.