The effect on the Media Library of including path elements in public IDs depends on whether your account is using fixed folder mode or dynamic folder mode.For details on delivering Public IDs in a path structure with or without versions, see Asset versions.If the first path element of a public_id does follow that pattern, then when delivering assets from that path, you must separate the last transformation component from the path element with a version component. By default, Cloudinary assumes that URL components following that pattern represent a Cloudinary transformation component. It's recommended to avoid using public ID path names starting with 1-3 characters followed by an underscore, such as my_path.You cannot use 'v' followed by numeric characters as the name of a path element in your public ID.The Public ID value can include path elements (slashes) for more structured delivery URLs and to assist with SEO. Additionally, they cannot include the following characters: ? & # \ % + Public ID values cannot begin or end with a space or forward slash ( /).), forward slashes ( /), underscores ( _), hyphens ( -). Public IDs can be up to 255 characters, including non-English characters, periods (.For raw asset types only, the file extension should be specified as part of the public_id.įor more details on asset types, see Asset types.For example, if you specify myname.mp4 as the public_id, then the image would be delivered as 4. The format (extension) of a media asset is appended to the public_id when it is delivered. character in a public ID, it's simply another character in the public ID value itself. The public ID value for image and video asset types should not include the file extension.You can set the public_id parameter when you upload an asset, which is useful when you want your delivery URLs to be more readable and SEO-friendly. The resulting delivery URL for such an asset would be something like: A randomly generated public_id looks something like this: 8jsb1xofxdqamu2rzwt9q. If you don't supply a Public ID in the upload API call, you will receive a randomly assigned Public ID in the response from the upload API call. You can also browse and search resources by Public IDs in Cloudinary's Media Library web interface. Public IDĮvery asset uploaded to Cloudinary is assigned a unique identifier in the form of a Public ID, which is a URL-safe string that is used to reference the uploaded resource as well as for building dynamic delivery and transformation URLs. For some special considerations for video and raw files, see Uploading video files and Uploading non-media files as raw files. However, in the great majority of cases, the features demonstrated by these examples can be equally applied to video and raw files as well. User-defined variables and arithmetic transformationsįor simplicity, many of the examples throughout this Media Upload Guide use image files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |