# IssueAttachment

Represents a file that is attached to an issue or a comment.

## Related Resources

Below you can find the list of resources that let you work with this entity.

* [Issue Attachments](resource-api-issues-issueID-attachments.html)

## Attributes

This table describes attributes of the `IssueAttachment` entity.

* To receive an attribute in the response from the server, specify it explicitly in the `fields` request parameter.

* To update an attribute, provide it in the body of a POST request.

|  Field  |  Type  |  Description  |
| --- | --- | --- |
|  id  |  String  |  The ID of the attachment. `Read-only`.  |
|  name  |  String  |  The name of the file.  |
|  author  |  [User](api-entity-User.html)  |  The user who attached the file to the issue. `Read-only`. `Can be null`.  |
|  created  |  Long  |  The timestamp in milliseconds indicating the moment when the attachment was created. Stored as a unix timestamp at UTC. `Read-only`.  |
|  updated  |  Long  |  The timestamp in milliseconds indicating the last update of the attachment. Stored as a unix timestamp at UTC. `Read-only`.  |
|  size  |  Long  |  The size of the attached file in bytes. `Read-only`.  |
|  extension  |  String  |  The extension that defines the file type. `Read-only`. `Can be null`.  |
|  charset  |  String  |  Charset of the file. `Read-only`. `Can be null`.  |
|  mimeType  |  String  |  Mime type of the file. `Read-only`. `Can be null`.  |
|  metaData  |  String  |  The dimensions of an image file. For an image file, the value is `rw=&rh=`. For a non-image file, the value is empty. `Read-only`. `Can be null`.  |
|  draft  |  Boolean  |  If true, attachment is not yet published, otherwise false. `Read-only`.  |
|  removed  |  Boolean  |  If true, then attachment is considered to be removed. `Read-only`.  |
|  base64Content  |  String  |     The Data URI that represents the attachment with the following syntax:       ```PLAINTEXT data:[<media type>][;base64],<data> ```      For example:       ```PLAINTEXT "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" ```   `Can be null`.  |
|  url  |  String  |  URL of the file. `Read-only`. `Can be null`.  |
|  visibility  |  [Visibility](api-entity-Visibility.html)  |  Access setting of the attachment. `Can be null`.  |
|  issue  |  [Issue](api-entity-Issue.html)  |  The issue that the file is attached to. `Read-only`. `Can be null`.  |
|  comment  |  [IssueComment](api-entity-IssueComment.html)  |  The comment that the file is attached to. Returns `null`, if the file was attached directly to the issue. `Read-only`.  |
|  thumbnailURL  |  String  |  URL of the attachment thumbnail. `Read-only`. `Can be null`.  |

