I'm using Carrierwave x Rails. Basically, I'm facing some problems with Amazon S3 string matching & I think it would just be easier to remove all the special characters, such as brackets & accents, (and spaces) before uploading the file.
So, what I'd like to know is how do you remove special characters from a file's filename before uploading the file in rails?
Thank you in advance
Solved. For anyone else who's facing the same or similar problem, read my solution in my answer below. Cheers :)
Check out the parameterize method here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With