add file
This commit is contained in:
@@ -19,7 +19,8 @@ export class MediaConnectService {
|
||||
private router: Router,
|
||||
public sessionDataProviderService :SessionDataProviderService) {
|
||||
// this is test
|
||||
this.url = 'https://dev-media.wrenchboard.com';
|
||||
// this.url = 'https://dev-media.wrenchboard.com';
|
||||
this.url = environment.baseMediaUrl;
|
||||
}
|
||||
|
||||
sendPostData(reqPath:string, reqData, file:File): Observable<any> {
|
||||
@@ -38,25 +39,10 @@ export class MediaConnectService {
|
||||
|
||||
headers.append('Content-Type','multipart/form-data');
|
||||
|
||||
//console.log(formData);
|
||||
/*
|
||||
const apiReturn = this.http.post(
|
||||
`${environment.baseMediaUrl}/${reqPath}`,formData, { headers: headers}
|
||||
);
|
||||
*/
|
||||
const apiReturn = this.http.post(
|
||||
`${environment.baseMediaUrl}/${reqPath}`,formData,
|
||||
);
|
||||
// const apiReturn = this.http.post(
|
||||
// `${environment.baseMediaUrl}/${reqPath}`,reqData
|
||||
// );
|
||||
|
||||
|
||||
/*
|
||||
axios.post('https://dev-media.wrenchboard.com/upload/contract',reqData )
|
||||
.then( res => {})
|
||||
.catch(er => console.log(er))
|
||||
*/
|
||||
return apiReturn;
|
||||
}
|
||||
uploadtaskFile(formData, file:File){
|
||||
|
||||
Reference in New Issue
Block a user