Skip to content
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

File Upload Not Working Status 422 (Unprocessable entity) (Not my validations) #12

Open
spq24 opened this issue Feb 20, 2013 · 0 comments

Comments

@spq24
Copy link

spq24 commented Feb 20, 2013

I'm trying to use the gem with paperclip. Everything seems to be working fine except that I'm getting Error OK as the status after I try to upload it. Below is what the JS console says when I try to upload it. Also a link to a gist I made with the model, controller, and form partial.

I'm trying to upload a 12.57 KB png image so it should not be my validations tripping it up.

Please help! I've posted this on stack overflow and the support forum and haven't been able to fix it on my own.

https://gist.github.com/spq24/5000772

POST http://localhost:3000/pins 422 (OK) jquery.js:8476
send jquery.js:8476
jQuery.extend.ajax jquery.js:7931
send jquery.fileupload.js:659
$.widget._onSend jquery.fileupload.js:720
(anonymous function) jquery.ui.widget.js:100
newData.submit jquery.fileupload.js:759
$.widget._startHandler jquery.fileupload-ui.js:517
(anonymous function) jquery.ui.widget.js:100
handlerProxy jquery.ui.widget.js:398
jQuery.event.dispatch jquery.js:3046
elemData.handle jquery.js:2722

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant