Use options.uploadFiles instead of options.pattern