qinix / carrierwave-webdav

WebDAV storage for carrierwave
MIT License
17 stars 11 forks source link

Undefined method file for CarrierWave::WebDAV::File #14

Open riderzero opened 4 years ago

riderzero commented 4 years ago

Hello, I received this error message when trying to store a file on my server. I'm using CarrierWave 2.1.0 and Rails 6.0.3.3. My version of Ruby is 2.6.6.

NoMethodError in UsersController#create undefined method 'file' for #<CarrierWave::WebDAV::File:0x00007f3d3c23d270>

Help me solve this problem, I want to use WebDav in my project and CarrierWave + WebDav seems like a great option.

solaris007 commented 2 years ago

This happens when you don't explicitly set cache storage location to non-webdav, such as config.cache_storage = :file

k-kumawat commented 6 months ago

Getting the same issue with carrierwave 2.2.5 and rails 6.0.6.1 and ruby 2.6.10.