1

I am using CarrierWave to store files on Dropbox.I have successfully integrated everything. Files are being successfully stored on Dropbox. The issue is CarrierWave still storing files on local machine app folder. And there i am getting error

Permission denied @ unlink_internal - C:/Users/name/Desktop/app_name/public

Previously i had this in my configuration file

class AvatarUploader < CarrierWave::Uploader::Base
  storage :file
end

After that i changed it to:

class AvatarUploader < CarrierWave::Uploader::Base
  storage :dropbox
end

I am using windows 8 and i am in development mode. I am keen to know why files are still being stored locally despite changing storage to dropbox. See here Error Screen

Zia Qamar
  • 1,694
  • 1
  • 15
  • 35

1 Answers1

4

I was facing same problem when I was uploading to AWS s3. The solution below worked for me:

In config\initializers\carrierwave.rb, add the following line:

config.delete_tmp_file_after_storage = false
Toastrackenigma
  • 7,604
  • 4
  • 45
  • 55
Vinyas Bj
  • 123
  • 6