Skip to content

Instantly share code, notes, and snippets.

@brandonkelly
Created January 15, 2013 21:10
Show Gist options
  • Save brandonkelly/4542088 to your computer and use it in GitHub Desktop.
Save brandonkelly/4542088 to your computer and use it in GitHub Desktop.
Here's how to create a simple file upload input for an Assets 2 field in SafeCracker
<input type="file" name="fieldname">
<input type="hidden" name="fieldname_filedir" value="1">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment