You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand how to configure the required endpoint prop. I suspect this references a pre-existing configuration or value related to active_storage, but I can't find it anywhere in the documentation. Can you say a few words about how to determine the values of that object? Thanks in advance.
The text was updated successfully, but these errors were encountered:
I found the answer in your tutorial. It clicked when I saw the comment in this snippet:
<ActiveStorageProvider
// -- How to attach the uploaded blob to your model
endpoint={{
path: '/profile',
model: 'User',
attribute: 'avatar',
method: 'PUT',
}}
In case it wasn't clear to anyone else, the component is handling the direct upload to store the file. That endpoint can be thought of as a callback that associates that uploaded file with the record. In this way, it's a two-part process:
uploading/storing the file
associating it with record
Maybe this was obvious to others who are more familiar with active storage direct uploads, but it took me some time to figure out so perhaps this will save others some time.
Thanks for this great tool!
I don't understand how to configure the required
endpoint
prop. I suspect this references a pre-existing configuration or value related to active_storage, but I can't find it anywhere in the documentation. Can you say a few words about how to determine the values of that object? Thanks in advance.The text was updated successfully, but these errors were encountered: