carrierwave-webdav icon indicating copy to clipboard operation
carrierwave-webdav copied to clipboard

Undefined method file for CarrierWave::WebDAV::File

Open riderzero opened this issue 4 years ago • 2 comments

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.

riderzero avatar Sep 18 '20 20:09 riderzero

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

solaris007 avatar Feb 04 '22 07:02 solaris007

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

k-kumawat avatar Mar 17 '24 14:03 k-kumawat