diff --git a/lib/locomotive/import/job.rb b/lib/locomotive/import/job.rb index 19749c4d..f45d3e13 100644 --- a/lib/locomotive/import/job.rb +++ b/lib/locomotive/import/job.rb @@ -91,12 +91,16 @@ module Locomotive def store_zipfile(zipfile) return nil if zipfile.blank? - file = CarrierWave::SanitizedFile.new(zipfile) - uploader = self.get_uploader(@site) begin - uploader.store!(file) + if zipfile.is_a?(String) && zipfile =~ /^http:\/\// + uploader.download!(zipfile) + uploader.store! + else + file = CarrierWave::SanitizedFile.new(zipfile) + uploader.store!(file) + end uploader.identifier rescue CarrierWave::IntegrityError nil