-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix permitted params allowing new images to be uploaded #3278
Conversation
The failing tests do not have anything to do with my PR. I had the same issue when trying to build a test-case. It is because the quiet_assets gem is trying to include Rails 5. It probably needs some version constraints (I 'solved' it by removing the gem :P ) |
Does it still work to upload multiple images? |
I did not know that it is possible to upload multiple images..! I'll check it out and report back |
It still works when adding new images (they are all added as separate images), when modifying an image I do not seem to be able to select multiple (but I assume that is logical?) |
That's right, you can only upload multiple when you're adding new images |
Thanks @veger! It takes time but it's finally merged :D |
This PR fixes uploading a new image for existing images. I would have expected that with the original/wrong permitted params uploading the initial image would have failed (but it obviously does not).
I have been fiddling over 2 hours to get a test case for this PR, but my knowledge of rspec/features, capybara, and the combination of both is seriously lacking... So no test-case this time... :(
Manual test show that adding a new image still works, and uploading a new one does as well (I get an error when I upload an image with an different name, see #3279)