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

Invalid Image URL (Not Opening as Web URL) #104

Open
parkerdonat opened this issue Nov 9, 2015 · 0 comments
Open

Invalid Image URL (Not Opening as Web URL) #104

parkerdonat opened this issue Nov 9, 2015 · 0 comments

Comments

@parkerdonat
Copy link

I'm working with Pinterest's SDK and I can't get a valid NSURL from Amazon S3. I use this code after all the example code provided by the AFAmazonManager cocoapod:

NSURL *resultURL = [s3Manager.requestSerializer.endpointURL URLByAppendingPathComponent:fileName];

This code returns this URL and it appears to be valid: https://phototower.s3.amazonaws.com/2015-11-09%2018:18:53%20+0000.jpg.

The interesting thing is it causes an invalid URL on my device, however, it works correctly in Simulator. How do I ensure my imageURL is valid? Is there a trick for images or am I missing something else?

I did notice when I paste the URL in a browser doesn't open as a web URL. It asks to save the image. Is that what is causing my issue or Is there a setting for Amazon S3 can open images in web URLs?

Any help would appreciated. Thanks in advance.

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

1 participant