We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Info:
I have a PDF file, created with backtick and 644 permission, when I tried to use Uploader.new.store!(File.open('/tmp/the_real_one.pdf')) I got:
Errno::ENOENT: No such file or directory - #{Rails.root}/tmp/uploads/20121024-1032-18976-4616/12345.pdf
I'm sure that's the tempfile that Carrierwave created. And sure enough, this directory doesn't exist:
#{Rails.root}/tmp/uploads/20121024-1032-18976-4616 # but this one exists: #{Rails.root}/tmp/uploads
The initializer and uploader class can be seen here: https://gist.github.com/3947572
This is the stacktrace generated by rspec: https://gist.github.com/3949536
I'm not doing anything fancy (e.g. mounting the uploader to a model), I must have missed something obvious here.
The text was updated successfully, but these errors were encountered:
More investigation shows that mkdir! in https://github.com/jnicklas/carrierwave/blob/master/lib/carrierwave/sanitized_file.rb
mkdir!
sometimes created the directory, sometimes didn't...
Sorry, something went wrong.
@didip I could not reproduce this with ruby (1.9.3), carrierwave (0.7.1), rails (3.2.8)
That's odd. Let's close this issue for now, maybe reopen it if other people have the same problem.
I've same problem:
The proposed temporary configuration fix doesn't change anything: config.delete_tmp_file_after_storage = false config.delete_cache_id_after_storage = false
Some ideas ?
ruby 1.9.3, carrierwave 0.7.1, rails 3.2.9
No branches or pull requests
Version Info:
I have a PDF file, created with backtick and 644 permission, when I tried to use Uploader.new.store!(File.open('/tmp/the_real_one.pdf')) I got:
I'm sure that's the tempfile that Carrierwave created. And sure enough, this directory doesn't exist:
The initializer and uploader class can be seen here: https://gist.github.com/3947572
This is the stacktrace generated by rspec: https://gist.github.com/3949536
I'm not doing anything fancy (e.g. mounting the uploader to a model), I must have missed something obvious here.
The text was updated successfully, but these errors were encountered: