Replies: 1 comment 1 reply
-
Hi, what do you mean by the "key" to the file? Can you give an example? Woudln't non-shrine file operations still need the URL to get access to the file on S3? Or do you want a Or are you maybe looking for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - I know that if I have an attachment stored in s3 I can do something like
record.file_url
to get a url to the file - but I would like to get just the key to the file because I have some non-shrine file operations I need to do with the attachment. I know that I could do some regex orsplit
nonsense on the url to extract the key, but I am hoping that there might be a shrine attacher method that I don't know about which could just return the key for me directly?Maybe I just need
"#{record.file_data['storage']}/#{record.file_data['id']}"
?Beta Was this translation helpful? Give feedback.
All reactions