mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
Fix uploading multiple models when sharing links
This commit is contained in:
@@ -203,7 +203,7 @@ async function uploadAndShareLink() {
|
|||||||
|
|
||||||
// Upload code.py
|
// Upload code.py
|
||||||
const codeBlob = new Blob([model.value.code], {type: 'text/x-python'});
|
const codeBlob = new Blob([model.value.code], {type: 'text/x-python'});
|
||||||
const newParams: Record<string, string> = {
|
const newParams: Record<string, string | Array<string>> = {
|
||||||
'pg_code': await uploadFile('code.py', new Uint8Array(await codeBlob.arrayBuffer()))
|
'pg_code': await uploadFile('code.py', new Uint8Array(await codeBlob.arrayBuffer()))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user