Limit on length of custom text field values

Is there any limit on the length of a custom text field? For example, can I add a 10MB size base64 string into a custom field of the cart?

Hi there @bvamos,

Their is a 2MB size limit for the cart, which means this would definitely be too heavy for a custom text field. Even if this was possible, this would probably not be a desirable solution (heavy data transfer on your site to fetch and update cart state).

If you want, don’t hesitate to provide more information on your goal. We might be able to help!

Cheers

Thanks, looks like Snipcart gives HTTP status 500 without a proper error message in case of cart size is bigger then this 2MB limit.
No problem, I resolved this by uploading the data before adding item to cart and just add a reference to the cart.

No problem, I resolved this by uploading the data before adding item to cart and just add a reference to the cart.

Yes that’s the way to go!

looks like Snipcart gives HTTP status 500 without a proper error message in case of cart size is bigger then this 2MB limit.

I’ll pass this feedback to the rest of the team, thanks!