iptdevs-design-system 3.2.88 → 3.2.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3672,15 +3672,22 @@ class MediaService extends IPTGeneralService {
3672
3672
  let serviceUrl = this.SERVICE_URL + 'get/media/code/' + idCode;
3673
3673
  return this.http.get(serviceUrl);
3674
3674
  }
3675
- uploadDocument(params) {
3675
+ uploadDocumentTwo(params) {
3676
3676
  const serviceUrl = this.SERVICE_URL + 'document/upload';
3677
3677
  const formData = new FormData();
3678
3678
  formData.append('params[token]', params.token);
3679
3679
  formData.append('params[code_student]', params.code_student.toString());
3680
3680
  formData.append('params[type_document]', params.type_document.toString());
3681
- if (params.file) {
3682
- formData.append('file', params.file, params.file.name);
3683
- }
3681
+ formData.append('file', params.file);
3682
+ return this.http.post(serviceUrl, formData);
3683
+ }
3684
+ uploadDocument(params) {
3685
+ let serviceUrl = this.SERVICE_URL + 'document/upload';
3686
+ let formData = new FormData();
3687
+ formData.append('file', params.file);
3688
+ formData.append('code_student', params.code_student);
3689
+ formData.append('type_document', params.type_document);
3690
+ formData.append('token', params.token);
3684
3691
  return this.http.post(serviceUrl, formData);
3685
3692
  }
3686
3693
  }