jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.66k stars 515 forks source link

Enhancement: Change Drag n Drop to File Upload #111

Closed z3dev closed 8 years ago

z3dev commented 8 years ago

There are browsers that don't support HTML5 drag and drop. In these case, the Drag and Drop should morph into a simple File upload button, and support all the various file types.

z3dev commented 8 years ago

Closing as the enhancement was added in version 0.5.0

RolandR commented 7 years ago

Hey,

Sorry for asking this here, but what is the relationship between the version on openjscad.org and the one you're referencing?

I still don't see this feature on the main openjscad.org site. Should I clone a dev branch or something?

Thanks!

z3dev commented 7 years ago

The last release has this feature. Please try the website, www.openjscad.org

Basically, the JavaScript detects that the browser is running on a mobile device (not easy), and then adds a file load button.

Let me know if this doesn't work with your device and or browser.

RolandR commented 7 years ago

Basically, the JavaScript detects that the browser is running on a mobile device (not easy), and then adds a file load button.

Oh, I see!

I think it would be very handy to also have a simple file upload button on desktop.
I know some people who don't actually have a graphical file browser installed, and in my opinion the drag-and-drop solution adds some unnecessary steps to the process - after all, I still have to navigate to the jscad file regardless of whether I'm doing so in nautilus/explorer/finder or in the browser's "upload file" popup.

-

By the way, thanks for your work on OpenJSCAD. I use it for pretty much any 3D models I make nowadays.
Here's a model train wagon written entirely in OpenJSCAD!