Structured Content 2022: Join our conference to explore fresh perspectives on content and digital experiences โ†’

Hello, Does the PHP library allow for uploading assets. If not, is this on the roadmap? I see the JavaScript library already supports this.

3 replies
Last updated: Feb 1, 2021

Hello,
Does the PHP library allow for uploading assets. If not, is this on the roadmap?
I see the JavaScript library already supports this.

Jan 15, 2021, 11:11 AM

Hi Shane, I'll check with the team ๐Ÿ™‚

Jan 15, 2021, 12:12 PM

I think we simply forgot to add it! I've created a PR, but it probably will have to wait until monday to be reviewed and released: https://github.com/sanity-io/sanity-php/pull/10
Thanks for letting us know
๐Ÿ™‚

Jan 16, 2021, 7:57 AM

They're merged and released in v1.5.0 now, documentation in readme:

https://github.com/sanity-io/sanity-php/tree/v1.5.0#upload-an-image-asset-from-local-file

Feb 1, 2021, 4:22 PM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.