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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I am working on a feature that allows users to upload files via URL. Some of these files may require additional dynamic headers to be passed.
I'm following the guide about multiple files: https://shrinerb.com/docs/multiple-files and remote files https://shrinerb.com/docs/plugins/remote_url
My uploader:
My models:
I attach files via nested attributes, and everything works fine.
But I also have to pass custom headers provided by users to the downloader, and I can't find any option even after dig into plugin source code:
shrine/lib/shrine/plugins/remote_url.rb
Line 42 in 004ffc8
shrine/lib/shrine/plugins/remote_url.rb
Line 55 in 004ffc8
Maybe I miss something and is there way to pass headers to download through model attributes?
Beta Was this translation helpful? Give feedback.
All reactions