Adapt to new file upload specification