In the file_save_upload() function, what keys can $validators take? I cannot find answers anywhere.


You can see the validators in core at the end of this listing:


the ones starting with file_validate_

Also there's an example of the array structure here: http://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_validate_picture/7

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.