Cleyton
Cleyton

Reputation: 2468

CarrierWave can't download an image - CarrierWave::IntegrityError

I'm trying to download this image using CarrierWave but it keeps giving this exception:

CarrierWave::IntegrityError

My download works for many images, but it's not working for this particular domain.

I've looked at this documentation but it didn't say too much.

Here's my whitelist:

%w(jpg jpeg gif png)

Upvotes: 2

Views: 722

Answers (1)

Tom Kadwill
Tom Kadwill

Reputation: 1478

It looks like CarrierWave::IntegrityError is raised when trying to download images that are not on the extension whitelist or are on the extension blacklist.

You can check out the CarrierWave specs for tests that induce the IntegrityError. This should help you figure out why your code is raising the error.

Upvotes: 1

Related Questions