I am using the carrier wave gem for file uploading, and I am not able to delete the original file after uploading. I tried the below code but it didn’t work, any help would be really appreciated.
- after :store, :unlink_original
File.delete(store_dir+’/’+@original_file) #path of the original file
Mob: +91 7760780741 | +91 9944414388