New function in API
Adjusted metadata form plugin to better handle files