Skip to content

Instantly share code, notes, and snippets.

@jadwigo
Last active August 29, 2015 14:26
Show Gist options
  • Save jadwigo/f92f6c4c9685ed4e7cec to your computer and use it in GitHub Desktop.
Save jadwigo/f92f6c4c9685ed4e7cec to your computer and use it in GitHub Desktop.
idea
fields:
somefield:
type: file
options:
secure: [txt, csv, zip, gz]
insecure: [php, jpg, doc, pdf, ppt]
@GwendolenLynch
Copy link

More thinking like:

contact:
  uploads:
    secure: true # Setting this to true will rename the uploaded file to "filename.ext.randomstring"
                 # Setting this to false will rename the uploaded file to "filename.randomstring.ext"
  database:
    contenttype: mycontenttype
  fields:
  somefield:
    type: file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment