我创建了两个选择,并希望在上传期间将它们的值作为参数发送到后端。你知道怎么做吗?你能帮我吗?
我的代码:
// Select Forms
// Month form
this.sendMonthsForm = this.fb.group({
monthsValue: [null]
});
// Year form
this.sendYearsForm = this.fb.group({
yearsValue: [null]
});
// Upload
this.uploader = new FileUploader({
url: `${environment.baseUrl}/upload?title=SuSa&context=${year}&period=${month}`,
maxFileSize: 2 * 1024 * 1024,
allowedFileType: ['csv', 'xls', 'xlsx'],
authToken: `Bearer ${currentUser.auth_token}`,
});