$metadata can also be a string filename (same as array("filename" => $filename))