Hey, everyone. Please pardon the n00b question. I’m building a classifieds site and am using Safecracker to allow non-members to create ads (entries). Given my inexperience with EE, I started by picking up the basic example from here. Here’s what I’ve got at the moment:
{exp:safecracker channel="cars" return="cars"}
Title:<input name="title" type="text"></p>
Model Year:<input name="model_year" type="text"></p>
Make:<input name="make" type="text"></p>
Model:<input name="model" type="text"></p>
Price:<input name="price" type="text"></p>
Photo:<input name="photo1" type="file"></p>
<input type="submit" value="Submit"></p>
{/exp:safecracker}Upon submission all of the text entries are published but not the image. The file upload directory is set to allow members to upload files, but the image never makes it there. No errors or anything. Everything works fine when publishing through the CP. Just upgraded from 2.2.2 to 2.3.1 tonight, hoping that would make a difference but it did not.
Yes, I’ve seen this handled more elegantly with the {custom_fields} loop and {if file}, but I’m starting basic with what makes sense given my limited knowledge. Plus this method gives me the simple file upload dialog, which I prefer to the file manager.
In searching the forums I’ve seen lots of discussion about the safecracker file input type vs. the file input type, but I can’t make sense of it.
Feels like I’m close, but I know too little. Can someone give me some insight?
Thanks!