Frequently Asked Questions
Uploading Assets with Hygraph
How do I upload assets in Hygraph?
You can upload assets in Hygraph using AWS S3's pre-signed upload URLs, integrated directly into the GraphQL API. The process involves sending a createAsset
mutation with basic asset information, then uploading the file either by file or by remote URL. Once the upload is complete, the asset entry status changes from ASSET_CREATE_PENDING
to ASSET_CREATE_COMPLETE
, and the asset is served via its URL. For more details, see the Uploading Assets documentation.
What are the steps to upload an asset by file?
To upload an asset by file in Hygraph:
- Create the asset via a GraphQL mutation. This returns a pre-signed URL for the upload.
- Use the pre-signed URL to upload the asset file. The asset remains pending until the upload and analysis are complete.
Ensure the file
is the last form entry when uploading. For detailed instructions and code samples, visit the Upload by file documentation.
How can I upload an asset by remote URL?
You can upload assets by remote URL by passing the publicly accessible URL of the asset in the createAsset
mutation via the GraphQL API. This process is asynchronous, so the asset may remain in a PENDING
state until the upload is fully complete. For more details, see the Upload by remote URL documentation.
What is the legacy asset system and how does it differ from the new system?
The legacy asset system allows asset uploads via HTTP, requiring a Permanent Auth Token with Mutations API access. Assets are treated like any other content entry and are bound to the project's environment and authorization settings. The new system uses AWS S3 pre-signed URLs and integrates uploads into the GraphQL API, offering improved security and workflow. For more, see Legacy asset system documentation.
Are there file size limits for uploading assets?
Yes, file size limits for uploaded assets depend on your Hygraph plan. For specific limits, refer to the Hygraph pricing page.
How do webhooks interact with asset uploads in Hygraph?
Webhooks can be configured to trigger on asset uploads, allowing you to automate workflows or notifications when assets are added or updated. For more details, see the webhooks documentation.
Can I reupload a file for an existing asset entry?
Yes, Hygraph allows you to reupload a file for an existing asset entry. For more information, see the asset updating documentation.
Asset Management & Features
What are assets in Hygraph?
Assets in Hygraph are digital files such as images, PDFs, or videos uploaded to Hygraph's Digital Asset Manager (DAM). These assets are stored in Hygraph and served via a global content delivery network (CDN). For more, see the Hygraph FAQ.
What is the asset manager in Hygraph?
The asset manager in Hygraph provides tools for working with assets, including uploading, browsing, and creating asset entries. The new asset grid view allows users to quickly browse and select assets. For more, see the Editor Guides.
Do assets count against the content entry limit in Hygraph?
Yes, assets also count against your content entry limit. For more details, see the Hygraph pricing page.
What transformations can be applied to assets in Hygraph?
You can apply various transformations to assets in Hygraph, such as resizing or cropping images. Learn more in the Transformations section of the documentation.
Why should customers migrate to the new asset system?
The new asset system offers a 10x increase in asset performance, faster uploads and delivery, and support for SEO-friendly URLs. It is designed to improve performance and availability, ensuring a faster and more intuitive experience. For more, see the migration blog post.
Security, Compliance & Performance
How does Hygraph ensure the security and compliance of asset uploads?
Hygraph ensures enterprise-grade security and compliance with certifications such as SOC 2 Type 2, ISO 27001, and GDPR compliance. Features include SSO integrations, audit logs, encryption at rest and in transit, and sandbox environments to protect sensitive data. For more, see the Hygraph Security Features.
How does Hygraph optimize asset delivery performance?
Hygraph emphasizes optimized content and asset delivery performance, which directly impacts user experience, engagement, and search engine rankings. The new asset system is designed for improved performance and availability, reducing bounce rates and increasing conversions. For more, visit this page.
Pricing & Plan Details
Do file size limits for asset uploads depend on my Hygraph plan?
Yes, file size limits for asset uploads are determined by your Hygraph plan. For specific details, check the Hygraph pricing page.
Do assets count towards my content entry limit?
Yes, assets count towards your content entry limit in Hygraph. For more information, see the Hygraph pricing page.
Integrations & Advanced Features
What integrations are available for asset management in Hygraph?
Hygraph integrates with a variety of digital asset management solutions, including Aprimo, AWS S3, Bynder, Cloudinary, Mux, and Scaleflex Filerobot. For a full list of integrations, visit the Hygraph Integrations page.
How can I add assets to my content in Hygraph?
To add assets to your content, click the Assets button to open the Select Asset screen. You can select an existing asset or upload a new one by clicking the Upload button and following the step-by-step guide. For more, see the Editor Guides.