processing / p5.js-web-editor

The p5.js Editor is a website for creating p5.js sketches, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! You can create, share, or remix p5.js sketches without needing to download or configure anything.
https://editor.p5js.org
GNU Lesser General Public License v2.1
1.3k stars 1.26k forks source link

Enable `.mtl` File Uploads #3067

Closed SableRaf closed 3 months ago

SableRaf commented 3 months ago

Increasing Access

Allowing .mtl file uploads in the p5.js Web Editor would ensure feature consistency between the editor and p5.js itself, reducing potential confusion for users.

Feature enhancement details

The p5.js Web Editor currently blocks the upload of .mtl files with a "you can't upload files of this type" error, despite .mtl file support being available in p5.js since version 1.9.2 (see processing/p5.js#6710). This discrepancy limits users' ability to fully utilize p5.js's 3D capabilities within the Web Editor.

image

lindapaiste commented 3 months ago

It needs to be added here and I think that's it? https://github.com/processing/p5.js-web-editor/blob/c4de2669ad4df5b0e99927a4dff8c7394d8f0744/server/utils/fileUtils.js