Implement EXTRA_ORIGINAL_FILENAME for API