Posted by el_reverend on April 6, 2010 at 7:55pm
Is there a way to check if a file or files have been uploaded in a content type? I'm trying to determined if a picture has been uploaded.
I have tried to check if a filefield contains a value, but I am getting an error message that my argument #2 is not an array in the cck content.rules.Inc file.
Any hints? How can I do that with php?
Comments
Currently trying this, but
Currently trying this, but that doesn't seem to work? I am told by rules that the variable $node does not exist...
return isset($node_unchanged->field_profile_pic)Any ideas? Hints?
PHP filter enabled?
Do you have the PHP filter up and running on your site?
If so, try
<?phpdpm($node_unchanged);
?>
<?phpdpm(get_defined_vars());
?>
Good luck!
//Johan Falk, NodeOne, Sweden