Please tell me Is it Possible to add custom validation to file_cck ? My need is when i upload files, i want to confirm whether the uploaded file is with correct mime type ? (now a html file with pdf extension is allowed to upload)

Comments

johanneshahn’s picture

Category: bug » feature

there is a restriction Modul for that
But i know that File_cck does not use the allowed mime in the field settings

johanneshahn’s picture

Version: 6.x-1.0-alpha5 » 6.x-1.x-dev

one up to dev

kdineshbe’s picture

S you can add validation to file_cck. To check file extensions, u can use finfo_file (). It is inbuilt with php 5.3

gobinathm’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing the issue. It was inactive for a long time & it's related to a Drupal Version which is not supported anymore