到目前为止,我一直在使用 Paperclip 将一些文件上传到 S3。其中一些文件不是公开的,Paperclip 允许通过以下位将一些文件作为私有文件上传:
has_attached_file :image, styles: { large: "2000x2000", small: "1200x1200", thumb: "250x250"}, :s3_permissions => :private
现在 Paperclip 已被弃用,我正在考虑切换到 Active Storage,尽管我还没有找到任何选项可以将我的一些文件设为私有。
Active Storage 中是否需要调整以允许这样做?