Created
December 19, 2023 19:05
-
-
Save VietDung7301/168c4d1a435eac0ebf9b45c021fc2c8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FormData = require('form-data'); | |
var fs = require('fs'); | |
var form = new FormData(); | |
form.append('name', 'Viet Dung'); | |
form.append('use_current_cv', 'no'); | |
form.append('file', img.fileUpload); // Lấy ảnh đã được upload | |
await sendRequest({ | |
url: 'https://deploy-itss-production.up.railway.app/api/v1/job/1/upload_cv', | |
method: 'POST', | |
data: form, | |
headers: { | |
'Authorization': 'Bearer <access_token>', | |
'Content-Type': 'multipart/form-data' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment