Forums / Cotonti / Development / Question about extra fields "file"

Trustmaster
#35320 2012-09-02 19:15

I think there isn't any type filter for file extrafields currently. You have 2 options:

  • Make an issue for 0.9.12 so it gets fixed there (in a few weeks).
  • Try to implement some plugin that would check extension of $_FILES['inputname']['name'] on form submit (i.e. page.add.add.first and page.edit.update.first) and throw an error (via cot_error()) if it is bad.
May the Source be with you!