Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

s3_protocol parameter. Using with API #2524

Closed
denis-mironov opened this issue Jan 5, 2018 · 1 comment
Closed

s3_protocol parameter. Using with API #2524

denis-mironov opened this issue Jan 5, 2018 · 1 comment

Comments

@denis-mironov
Copy link

Hi, guys!

I'm working with API and using paperclip for uploading images. After updating from v4.3.6 to v5.1.0 all images stopped displaying on IOS and Android apps. I spent some time trying to understand and fix it. Problem was in setting s3_protocol as empty string in v5.1.0 (#2038).
By default my API was returning images urls without specifying the protocol. Such behavior is more sensitive for WEB, but our mobile apps are using libraries to work with images and can not identify image url without protocol.
It was necessary to add s3_protocol: :http to config.paperclip_defaults to fix issue. But this solution is not obvious for everyone and there is no any documentation for such case.

I think it will be good if you add this case explanation to paperclip documentation

@mike-burns
Copy link
Contributor

Thank you for the feature request. Unfortunately we will be deprecating Paperclip and therefore will no longer be accepting new features.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants