I’m trying to get the path to the file when I have the ID. This is what I’m doing:
$rev_id = Document_Revisions::$instance->get_latest_revision($id); $rev_post = get_post($rev_id); $revision = get_post($rev_post->post_content); $filepath = get_attached_file($revision->ID);
$filepath is then something like this (and the file does not exist):
While the actual file is at:
Can you help?
- The topic ‘Get local file path’ is closed to new replies.