I need to set an asset field's dynamic subfolder path to the User ID.
The field is within a matrix.
The matrix a field in a User profile.
Setting it to {currentUser.id}
, {owner.author.id}
, {object.author.id}
results in an invalid path message when trying to upload to the asset field.
{currentUser.uid}
ideally, so the upload location is anonymous to anyone peeking at the asset URL, however it seemsuid
isn't available on the User model.