[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/images/storage/upload-images/upload-custom-path/ [Back]  [Original]

Upload via custom path Cloudflare Images docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /Cloudflare Images
  3. /
    Storage
  4. /Upload images
  5. /Upload via custom path

Upload via custom path

Last updated Apr 21, 2026Copy as MarkdownView as MarkdownAgent setup

You can use a custom ID path to upload an image instead of the path automatically generated by Cloudflare Images Universal Unique Identifier (UUID).

Custom paths support:

Note

Images with custom ID paths cannot be made private using signed URL tokens. Additionally, when serving images, any % characters present in Custom IDs must be encoded to %25 in the image delivery URLs.

Make a POST request using the example below as reference. You can use custom ID paths when you upload via a URL or with a direct file upload.

curl --request POST https://api.cloudflare.com/client/v4/accounts/{account_id}/images/v1 \
--header "Authorization: Bearer <API_TOKEN>" \
--form 'url=https://<REMOTE_PATH_TO_IMAGE>' \
--form 'id=<PATH_TO_YOUR_IMAGE>'

After successfully uploading the image, you will receive a response similar to the example below.

{
	"result": {
		"id": "<PATH_TO_YOUR_IMAGE>",
		"filename": "<YOUR_IMAGE>",
		"uploaded": "2022-04-20T09:51:09.559Z",
		"requireSignedURLs": false,
		"variants": [
			"https://imagedelivery.net/Vi7wi5KSItxGFsWRG2Us6Q/<PATH_TO_YOUR_IMAGE>/public"
		]
	},
	"result_info": null,
	"success": true,
	"errors": [],
	"messages": []
}
PreviousUpload via URLNextAccept user-uploaded images

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page