mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
done chunk upload
This commit is contained in:
@@ -182,28 +182,19 @@ export class MiddlewareServiceService {
|
||||
|
||||
|
||||
|
||||
CMAPIFileContent({length, path, index, blobFile}) {
|
||||
const headers = new HttpHeaders();
|
||||
headers.set('Authorization', 'Bearer ' + SessionStore.user.Authorization);
|
||||
CMAPIFileContent({length, path, index, base64}) {
|
||||
|
||||
// const geturl = 'http://localhost:3001/FileHub';
|
||||
const geturl = environment.apiPCURL + 'FileContent/UploadFile';
|
||||
|
||||
let options = {
|
||||
headers: headers
|
||||
};
|
||||
|
||||
const formData = new FormData();
|
||||
|
||||
formData.append("blobFile", blobFile);
|
||||
formData.append("length", length);
|
||||
formData.append("index", index.toString());
|
||||
|
||||
if(path) {
|
||||
formData.append("path", path);
|
||||
const data = {
|
||||
index,
|
||||
length,
|
||||
base64,
|
||||
path,
|
||||
}
|
||||
|
||||
return this.http.post<IuploadFileLK>(`${geturl}`, formData, options)
|
||||
return this.http.post<IuploadFileLK>(`${geturl}`, data)
|
||||
}
|
||||
|
||||
CMAPIRequestUpload() {
|
||||
|
||||
Reference in New Issue
Block a user