Replies: 3 comments
-
|
Have you tried accessing the field data instead? ->getUploadedFileNameForStorageUsing(function ($get) {
$slug = $get('slug');
// ...
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is how I got it to work
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I made it work like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
FileUploadcomponent with agetUploadedFileNameForStorageUsing()callback defined as outlined in the docs here.However, I need the custom file name to contain the slug of the current item that is being edited/created.
Is there a way to get the current item context?
The
$componentargument does appear to contain a$modelproperty but it is empty even when I edit an existing item.Beta Was this translation helpful? Give feedback.
All reactions