carrierwave_encrypter_decrypter icon indicating copy to clipboard operation
carrierwave_encrypter_decrypter copied to clipboard

fix can't find file bug

Open renny-ren opened this issue 6 years ago • 2 comments

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.

renny-ren avatar Jun 24 '18 02:06 renny-ren

@rennyallen Thanks for reporting and fixing. Can you provide me the link to sample code base where it was discovered

ankit8898 avatar Jun 25 '18 15:06 ankit8898

@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.

renny-ren avatar Jun 25 '18 15:06 renny-ren