Adapt fillInput() to media upload; fix addUploadField().