I am processing videos with carrierwave and fog as storage provider. All videos that are uploaded have the content type "application/json". I already got so far, that i have overriden the CarrierWave::Storage::Fog::File#content_type method but with no success. With that tried i've come to the conclusion, that there is something wrong underneath my processing code.
What i can see with EXCON_DEBUG=true is, that the first request, putting my video into a temp file, works as expected:
I have the same issue with fog-core 1.45.0, fog-openstack 0.3.10 and carrierwave 2.1.0.
I had to set local cache (cache_storage :file) in carrierwave not to move files remotely via X-Copy-From header
I am processing videos with carrierwave and fog as storage provider. All videos that are uploaded have the content type "application/json". I already got so far, that i have overriden the
CarrierWave::Storage::Fog::File#content_type
method but with no success. With that tried i've come to the conclusion, that there is something wrong underneath my processing code.What i can see with
EXCON_DEBUG=true
is, that the first request, putting my video into a temp file, works as expected:I get a 201 Created back. After that, carrierwave processes the file and moves it with fog-openstack into is real destination:
The response for the copy request looks as following:
After that, the file which got moved will only be accessible via content type "application/json".
Any ideas?
Best, Niklas