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

If you mark a "File" as required, then try to create an entry it will return an error "Entry not created" #892

Closed
hems opened this issue Mar 11, 2014 · 4 comments

Comments

@hems
Copy link

hems commented Mar 11, 2014

Basically i created a model with,

Simple Input
File
Description

marked all as "required".

Then went to "New entry", but i can't save the new entry since even after i selected an image on the file field locomotive still thinks there's no file selected and give me the

"Entry was not created" Error, looking on the "Network" tab of my Dev Tools, i can see a json being returned:

image: [can't be blank]
0: "can't be blank"

@did
Copy link
Member

did commented Apr 1, 2014

hi @hems, I was not able to reproduce it on my master branch. Which version are u running?
thanks!

@hems
Copy link
Author

hems commented Apr 4, 2014

From my Gemfile:

gem 'locomotive_cms', '~> 2.4.1', :require => 'locomotive/engine'

@m-vz
Copy link

m-vz commented Apr 7, 2014

I'm experiencing the same problem. On the same LocomotiveCMS version.
The strange thing is, that I created some entries successfully until it suddenly stopped working. I tried flushing the database and push the content_types again – no luck.
If I create a different model in the backoffice (also with a required file), it works fine. It seems to only affect pushed content types...

@did
Copy link
Member

did commented Oct 20, 2015

Works fine in V3.

@did did closed this as completed Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants