rename options.pattern to options.uploadFiles