-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
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
in Windows, uploading to Amazon S3 and Rackspace Cloud Files fails #14
Comments
Does it work with just |
Yes! So the example is:
Thanks!! |
Is this from the master branch? I haven't used this plugin in years. Also, you don't need the RUBY_PLATFORM check. You can pass 'rb' to it on unix systems. Other non-windows systems happily ignore the 'b'. |
Does linux works ok with File.open(temp_path, "rb") ? |
Correct. |
I haven't commited my code... |
You should do that...? |
ok. thanks. I'll do it. |
Ah yes, a pull request would be great if you want credit :) |
Fix crash with protected_attributes and rails 4.2
You have to change the save_to_storage from s3 and rackspace backends so instead of:
(temp_path ? File.open(temp_path) : temp_data)
you do:
(temp_path ? File.open(temp_path, "rb") : temp_data)
Example for rackspace:
The text was updated successfully, but these errors were encountered: