do you want to load 3d object using three.js https://threejs.org/ from .obj octet-stream?
Yes, while trying to load .obj file from the directory to threejs script, it can't load the file. But if I try with a url after uploading the .obj somewhere else, it works properly. Faced the same issue in .Net project before and resolved by registering mime type on startup. But in the nopCommerce plugin, that trick isn't working.
But if I try with a url after uploading the .obj somewhere else, it works properly. Faced the same issue in .Net project before and resolved by registering mime type on startup. But in the nopCommerce plugin, that trick isn't working.
You can store your .obj file under www root from plugin and serve as url. What is the problem?
I didn't try to load the files keeping on the wwroot. I kept them on the plugin directory as generally, we keep static files inside specific plugin projects and load them from there, so that extra files don't occupy any space while uninstalling that plugin. Thanks for the advice, I'll apply your trick.
Could you please tell me, what are the results of the implementation of this solution? I now have similar difficulties with 3D objects and would like to know your experience in solving this problem.