cotonti.com : Question about extra fields "file" https://www.cotonti.com Останні повідомлення в темі Cotonti en Tue, 03 Feb 2026 11:25:13 -0000 tensh When I find my login info, I'll add an issue :) It would be great if it checked the extensions. Better be safe than sorry.

]]>
Thu, 06 Гру 2012 09:34:18 -0000
Trustmaster 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.
]]>
Нд, 02 Вер 2012 19:15:58 -0000
tensh thanks for an answer, however it seems not to work since I was able to upload a php file. Sure it can't be executed due to htaccess settings, but it still makes me feel ueasy about it :)

Added 7 days later:

Can ANYBODY help me with this issue?

]]>
Сб, 25 Сер 2012 11:57:38 -0000
Dave im not sure but for the Genoa there is a php file called extensions.php in the "datas" folder

and i think ull be allowed to limit only size of the Personal File Space.

-Dave

]]>
Сб, 25 Сер 2012 11:49:37 -0000
tensh Hi;

I have one questions about extra field (the file field) for users:

- how can limit the upload to only one (or some) type of file?

]]>
Сб, 25 Сер 2012 11:09:26 -0000