Auto Upload and Public ID
Is it possible when using the auto upload and fetch feature (remote url) , to also assign the public ID manually?
-
Hi Brian,
For Fetch-ed resources, renaming is not supported as resources of type Fetch are only cached in your Cloudinary account and thus are not managed in the same way as uploaded or Auto-Uploaded ones.
Regarding Auto-Uploaded; While you will be able to find an Auto-Uploaded asset, go to the Manage page and rename the asset (only the public_id, the folder structure will need to remain as it is) this isn't recommended in the large majority of cases. This is because when you rename it, the URL on your website/app would also need to be updated. If this isn't the case and a request using the original Auto-Upload URL reaches Cloudinary then we will see that this image is not in your account (as it was renamed) and Cloudinary will retrieve it from the remote source leading to having 2 duplicate images in your account. Another thing you may run into is that if you delete the renamed Auto-Uploaded asset and still access the renamed image URL, then Cloudinary will attempt to retrieve it from the remote source, but as it is renamed, it will result in a 404 Not Found error as the source file on the remote server won't be found under the new name.
Best regards,
Aleksandar
0
Post is closed for comments.
Comments
1 comment