Why are my files uploaded to format N/A ? (except for images and pdf)
jeangisele
Member Posts: 1 ✭
Hello,
I've had a situation for a while now where my uploads don't work correctly.
I'm developping an app with Rails 7 and use cloudinary for storing files attached to my tickets.
storage.yml
development & production.rb
In Cloudinary, I've allowed raw files.
Example :
I just tried uploading an excel file (test.xlsx). Logs below :
- if you look at them, you will see no error - content type is always defined
- once the file is uploaded, here is the URL which doesnt work. Although it contains the file extension :
- https://res.cloudinary.com/dybh6frfh/raw/upload/v1/development/8po6i5knq8vs3t8p7k1n7sxt746v.xlsx?_a=BACADKEv
- My file in Cloudinary :
- When I download the file from my app, the size is 0 byte
I've spent hours and hours trying to figure this out, but I failed. At some point the upload will work for a given file, and not for the same given file 5 minutes later although my code has not changed.
Your help would be greatly appreciated, thank you in advance.
Tagged:
0