Avoid multiple uploads of the same file in confluence
Cette révision appartient à :
Parent
5d6dc9a8b1
révision
6f43467348
BIN
daux.phar
BIN
daux.phar
Fichier binaire non affiché.
@ -21,7 +21,7 @@ class ContentPage extends \Todaymade\Daux\Format\Base\ContentPage
|
||||
$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);
|
||||
}
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user