iptdevs-design-system 3.2.68 → 3.2.69

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,6 +3672,16 @@ 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) {
3676
+ const serviceUrl = this.SERVICE_URL + 'document/upload';
3677
+ const formData = new FormData();
3678
+ formData.append('params[token]', params.token);
3679
+ formData.append('params[code_user]', params.code_user.toString());
3680
+ if (params.file) {
3681
+ formData.append('file', params.file, params.file.name);
3682
+ }
3683
+ return this.http.post(serviceUrl, formData);
3684
+ }
3675
3685
  }
3676
3686
  MediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: MediaService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
3677
3687
  MediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: MediaService, providedIn: 'root' });