# ishare setup: upload from your Mac

How to set up ishare on a Mac with hematite: download the config, import it, turn on uploading, and get a link with each capture. What's in it, and its errors.

[ishare](https://github.com/itoolio/ishare) is a free screenshot and recording tool for macOS. With hematite's config, each capture goes up and its link lands on your clipboard, as [ShareX](https://hematite.gg/docs/uploaders/sharex) does on Windows. ishare 5.3 and later need macOS 15 on a Mac with Apple silicon.

## Set it up

1. **Download your config.** In hematite, open [Settings → Uploaders](https://hematite.gg/settings/uploaders) and press **Download config** beside ishare. You get `hematite-ishare.iscu`.
2. **Open the file.** ishare asks **Do you want to import the uploader "hematite"?** Press **Import**: it becomes the uploader in use. Or, in ishare's settings, open **Uploaders** and press **Import** under **Custom Uploaders**.
3. **Turn on uploading.** In ishare's settings, among the steps after a capture, turn on **Upload Media**. It's off until you do.
4. **Take a screenshot.** When it's up, the link is on your clipboard.

> **Warning: The file holds a token: keep it to yourself**
>
> Each config you download carries a new upload token, which is shown nowhere
> else. ishare keeps it in its settings, which it syncs through iCloud. If the
> file gets out, remove the token (below) and download a new config.

Downloading again and importing the new file replaces hematite's uploader in ishare rather than adding a second one. Remove the old token afterwards.

## What's in the file

The config is plain JSON:

```json title="hematite-ishare.iscu"
{
  "id": "2d6e1009-2cc0-4ce0-a394-305ebcc03919",
  "name": "hematite",
  "requestURL": "https://api.hematite.gg/v1/images",
  "headers": {
    "Authorization": "hmu_live_…"
  },
  "formData": {
    "p": "ishare",
    "v": "1",
    "t": "1763400000000"
  },
  "fileFormName": "file",
  "responseURL": "{{data.shareUrl}}"
}
```

| Part                    | What it does                                                                                                   |
| ----------------------- | -------------------------------------------------------------------------------------------------------------- |
| `id`                    | The same in every hematite file, so a new one replaces the old one in ishare                                   |
| `requestURL`            | Where captures are sent: the API's upload endpoint, [`POST /images`](https://hematite.gg/docs/developers/reference/images#post-images) |
| `headers.Authorization` | Your upload token (`hmu_live_…`). It can upload and do nothing else                                            |
| `formData`              | Says the upload comes from ishare (`p`), which config it is (`v`) and when the file was made (`t`)             |
| `fileFormName`          | The form field the capture is sent in, `file`                                                                  |
| `responseURL`           | The link ishare copies: the one your [link settings](https://hematite.gg/docs/guides/share-links) make                                 |

There's no delete link in it. ishare would call a delete link itself, and count any answer as deleted, while hematite's opens a page that asks first: the upload would leave ishare's history and stay online. Delete an upload from [your images](https://hematite.gg/images).

## How ishare uploads come out

- **They take your [upload settings](https://hematite.gg/settings/upload):** who can see them, when they delete themselves, how they're compressed.
- **hematite takes pictures:** PNG, JPEG, GIF and WebP, up to 16 MB. ishare's screenshots are PNG unless you chose another format. A recording, a HEIC or an AVIF (ishare's image optimisation) is refused.

## Your upload tokens

The config's token lasts 90 days and counts toward your ten. It's listed as **ishare** on [Settings → Uploaders](https://hematite.gg/settings/uploaders) and in [Settings → Security](https://hematite.gg/settings/security). Remove it in either place and ishare stops uploading; your other uploaders carry on.

## When it fails

ishare says **Upload failed**. To see hematite's answer, open the uploader in ishare's settings and press **Test Upload**: it shows the status and the message. A test upload is a real one, a small blank picture in your images.

| Status | What it means                                                              | What to do                                   |
| ------ | -------------------------------------------------------------------------- | -------------------------------------------- |
| 401    | The token is missing, expired or removed                                   | Download a new config                        |
| 402    | Your plan's storage is full                                                | Delete something, or see [pricing](https://hematite.gg/pricing) |
| 400    | The file is over 16 MB, or isn't PNG, JPEG, GIF or WebP                    | Capture as PNG or JPEG                       |
| 429    | Uploads past the limit, 60 a minute | Nothing: ishare tries again by itself        |

[API errors and rate limits](https://hematite.gg/docs/developers/errors) has the full list.
