UrlCannotBeDetermined when storing files with custom file system disk #2595
Unanswered
LarryBarker
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Just wanted to follow up here... if I change L65 in
to:
Things work as expected. So it seems this version of the package requires the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi Freek, thanks for your reply. The problem seems to be that
storage_path() helper cannot be used for the root file system because the
LocalUrlGenerator is expecting public_path() to be used.
I wouldn’t call it an error or bug if this is the expected behavior, just
trying to understand how to allow storage directory to be used.
…On Mon, Sep 20, 2021 at 1:33 AM Freek Van der Herten < ***@***.***> wrote:
I don't fully understand the problem, but I do welcome PRs for bug fixes.
Make sure to add a test for it too 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2595 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3HK7COMA5UCMDNJDLF7JTUC3ISDANCNFSM5EJOVCWQ>
.
|
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.
-
Hello, first thank you for sharing this package. It is tremendously helpful. We had originally installed the latest version, only to find out our production environment would not support it so we had to downgrade to v7.x
Since then, we have had some issues getting the package to work. Specifically, we are seeing the
UrlCannotBeDetermined
exception when trying to usegetFirstMediaUrl
.Here is our setup:
I have looked around for others with similar issues, and the closest I have found is: #86
so I added the debug statements to
LocalUrlGenerator
:So far, the only way I have been able to store files is to change the root for the disk from
storage_path('app/public')
to simplypublic_path()
. The problem with this is that the files are being stored in the public directory, instead of being stored in the storage directory and symbolically linked to the public directory.Surely there is something I can do to fix this? I'd prefer to not have to write our own URL generator if possible. Any feedback or input is greatly appreciated :) Thank you!
Beta Was this translation helpful? Give feedback.
All reactions