> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SaveAttachment

> Utilisez SaveAttachment dans l’API ABBYY FlexiCapture pour ajouter une pièce jointe à un document, une page ou un lot spécifié sur le serveur d’applications.

<div id="what-it-does">
  ## Ce que cela fait
</div>

Ajoute une pièce jointe à l’objet spécifié.

<div id="definition">
  ## Définition
</div>

```
void SaveAttachment( int sessionId, int type, int objectId, int batchId, int projectId, File file );
```

<div id="parameters">
  ## Paramètres
</div>

<table width="100%"><tbody><tr><td><p><strong>Nom</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>L’ID de la connexion au serveur d’applications</p></td></tr><tr><td><p>type</p></td><td><p>int</p></td><td><p>Type de la pièce jointe. Valeurs possibles</p><ul><li><strong>9</strong> - pièce jointe d’un document ;</li><li><strong>10</strong> - pièce jointe d’une page ;</li><li><strong>11</strong> - pièce jointe d’un lot.</li></ul></td></tr><tr><td><p>objectId</p></td><td><p>int</p></td><td><p>L’ID de l’objet</p></td></tr><tr><td><p>batchId</p></td><td><p>int</p></td><td><p>L’ID du lot</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>L’ID du projet</p></td></tr><tr><td><p>file</p></td><td><p><a href="/fr/flexi-capture/api/structures/file">File</a></p></td><td><p>Fichier joint</p></td></tr></tbody></table>

<div id="returned-value">
  ## Valeur de retour
</div>

Aucune.
