Manual talk:Hooks/UploadComplete

What is the return value that is expected here? 141.241.202.16 10:51, 1 September 2008 (UTC)


 * Read the docs:
 * Event handlers can return one of three possible values:
 * true: the hook has operated successfully
 * "some string": an error occurred; processing should stop and the error should be shown to the user
 * false: the hook has successfully done the work necessary and the calling function should skip
 * --Benjamin Garn 16:40, 17 December 2008 (UTC)

$image is not Image
The object passed to this hook is NOT Image but UploadForm! --Benjamin Garn 16:33, 17 December 2008 (UTC)