Open eseca opened 9 years ago
In ~/.rvm/gems/ruby-2.2.1/gems/carrierwave_encrypter_decrypter-0.0.6/lib/carrierwave/encrypter_decrypter/openssl/aes.rb and pkcs5.rb
must change:
... original_file_path = obj.send(mounted_as).root + obj.send(mounted_as).url encrypted_file_path = obj.send(mounted_as).root + obj.send(mounted_as).url + ".enc"
with: .... original_file_path = File.join(obj.send(mounted_as).root, obj.send(mounted_as).url) encrypted_file_path = original_file_path.to_s + ".enc"
Hi ,
I have used the same code on aes.rb and after that I restart rails server. It still not decypting file outside public folder. However it is encypting and decypting file in my public folder.
I am facing below error while decypting file.
"No such file or directory @ rb_sysopen - /Users/myname/Ruby/myproject/documents/anyfile.doc"
Kindly help to resolve this issue.
Hi, I'm having the same problem..did anyone find a solution?
I want to upload the files in another destination,
upload
at project root. So I got the following configuration inconfig/initializers/carrierwave.rb
My uploader has the following
Upload and encryption work fine. Decrypting the file won't work. When running the command in rails console this is what I get: