Migrate file upload from 0.x to 1