Closed stuartpb closed 5 years ago
Hi @stuartpb , by 'upload' do you mean drag & drop to display a file ? Is this for the online version or self hosted ?
Drag & drop or clicking the button to browse. This is for the online version at https://openjscad.org/.
Chrome, at least on ChromOS, puts null's in the DataTransferItem array. I'm not sure why, but this fixes it:
diff --git a/packages/web/dist/index.js b/packages/web/dist/index.js
index dbb5a75..365c3d3 100644
--- a/packages/web/dist/index.js
+++ b/packages/web/dist/index.js
@@ -94509,7 +94509,7 @@ function pseudoArraytoArray(pseudoArray) {
var array = [];
for (var i = 0; i < pseudoArray.length; i++) {
var item = pseudoArray[i];
- array.push(item.webkitGetAsEntry ? item.webkitGetAsEntry() : item);
+ if (item) array.push(item.webkitGetAsEntry ? item.webkitGetAsEntry() : item);
}
return array;
}
I got this error trying to upload a file on Chrome OS Version 62.0.3202.97 (Official Build) (32-bit):