New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No collection fallback when using getTemporaryUrl #1898
Comments
I accept a PR that improves this behaviour. |
@freekmurze I get the following faild test:
Is it perhaps useful to replace all "\" with "/" in the tests? Or could any other problems arise then? |
Yeah, than it won't work on Unix based systems. Maybe you can solve this by using |
Hi @freekmurze, After some digging into the codebase, I think it will break more stuff than necessary to make it work. When I send back a @nessor can't you use: // Your code
Auth::user()->getFirstMedia('avatars')->getTemporaryUrl(\Carbon\Carbon::now()->addMinutes(10))
// What I suppose it needs to be
// filename: InteractsWithMedia.php for more information
Auth::user()->getFirstTemporaryUrl(\Carbon\Carbon::now()->addMinutes(10), 'avatars') |
@DenMette Idk. Unfortunately, I have so less time at the moment, that I could not continue to work on it :( |
Closing this due to inactivity. |
PHP: v7.4.5
Laravel: v7.9.2
Media Library: 8.2.7
Hey guys,
I have noticed that apparently when using the function getTemporaryUrl the fallback url from the collection is not used.
The collection:
The call:
The error:
But when I try to call the getFirstMediaUrl function everything is working fine
Am I doing something wrong or can someone validate the problem?
The text was updated successfully, but these errors were encountered: