---
title: "This stores a file (image) in temp directory for use in a cover image replacement flow. This is automatically cleaned up."
method: POST
path: "/api/Upload/upload-by-url"
tags: ["Upload"]
---

# This stores a file (image) in temp directory for use in a cover image replacement flow. This is automatically cleaned up.

`POST /api/Upload/upload-by-url`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Upload/upload-by-url`
- Auth: API key in header `x-api-key`

## Request body

- UploadUrlDto
  - `url` string, required

## Response `200`

OK

- string

## Changes

- **2026-08-19** `8f6bc4f38f06`: 3 warning
  - removed the request property `isInternalUrl` (media type: application/json)
  - removed the request property `isInternalUrl` (media type: text/json)
  - removed the request property `isInternalUrl` (media type: application/*+json)
- **2026-05-19** `f23d18415096`: 3 info
  - added the new optional request property `isInternalUrl` (media type: application/json)
  - added the new optional request property `isInternalUrl` (media type: text/json)
  - added the new optional request property `isInternalUrl` (media type: application/*+json)

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Upload/upload-by-url/post.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
