Closed kimili closed 5 years ago
Thanks a lot for the detailed report and finding the solution. Since sign_url: true
will work for public uploads as well, I don't see any reason why it shouldn't be the default. I will push that change and release 1.0.1.
I'm uploading video assets to directly to Cloudinary (using Uppy and the
presign_endpoint
plugin). The assets are getting there no problem.However, I want to restrict access to the original source file on Cloudinary, so I have tried setting upload
type
set toprivate
orauthenticated
, or theaccess_mode
toauthenticated
. This scenario sets up a failure retrieving metadata from the source file.As you can see from the call stack in the screenshot, it's calling
refresh_metadata
which eventually makes its way to theopen
method in theShrine::Storage::Cloudinary
class. That method has no way to call Cloudinary signed URLs as far as I can tell. In this case, if theopen
method used thesign_url
parameter:...the request is authenticated and completes successfully. Any suggestions as to how I can work around this?