carrierwave_encrypter_decrypter
carrierwave_encrypter_decrypter copied to clipboard
fix can't find file bug
There's a bug, we will want to add to_s
for the original_file_path and encrypted_file_path, otherwise it can not find the file.
@rennyallen Thanks for reporting and fixing. Can you provide me the link to sample code base where it was discovered
@ankit8898 Thanks for your reply.
There's no link, I've tried this in one of my private projects, when I decrypt file like this: Carrierwave::EncrypterDecrypter::Downloader.decrypt(@user.avatar_file, mounted_as: :file)
I got an error: no such file or directory - xxxxx
After I changed the code added to_s
the problem solved.