Letting uploadcomponent write file.