File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ export default class AMCApplication extends Common.AMCObject {
561561 formData . append ( "size" , chunkData . byteLength ) ;
562562 formData . append ( "offset" , uploadOffset ) ;
563563 formData . append ( "data" , new Blob ( [ chunkData ] , {
564- type : "application/3mf"
564+ type : uploadObject . getMimeType ( )
565565 } ) , uploadObject . getFileName ( ) ) ;
566566
567567 application . axiosPostFormData ( "/upload/" + uploadObject . streamuuid , formData )
@@ -689,7 +689,7 @@ export default class AMCApplication extends Common.AMCObject {
689689 formData . append ( "size" , chunkData . byteLength ) ;
690690 formData . append ( "offset" , uploadOffset ) ;
691691 formData . append ( "data" , new Blob ( [ chunkData ] , {
692- type : "application/3mf"
692+ type : uploadObject . getMimeType ( )
693693 } ) , uploadObject . getFileName ( ) ) ;
694694
695695 application . axiosPostFormData ( "/upload/" + uploadObject . streamuuid , formData )
Original file line number Diff line number Diff line change @@ -191,7 +191,12 @@ export default class AMCUpload extends Common.AMCObject {
191191 {
192192 return this . sha256sum ;
193193 }
194-
194+
195+ getMimeType ( )
196+ {
197+ return this . itemState . getMimeType ( ) ;
198+ }
199+
195200 checkIfUploadIsActive ( )
196201 {
197202 if ( this . itemState ) {
You can’t perform that action at this time.
0 commit comments