Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
...a what??
You want to build what... An electron file explorer? A server file browser? -
devTea240885y@AlgoRythm a file explorer shown on web as component, I figured ways to make it myself, but too tired to reinventing the wheel
-
@devTea OHHHH okay. What's your stack? Node? PHP? You mentioned JS so I'm assuming Node
If it's node I'm sure there are a hundred million fucking packages on npm. If not I'll write you one -
devTea240885y@AlgoRythm nah I decided to make on myself, the backend just generate the dirs/files and send the path to the front end to generate the icons and such thing
-
@devTea that's what I would do. Really a simple task, just make sure not to expose any sensitive paths.
-
Would it be something similar to what we see in a Jupyter notebook which contains folders and files like how we would see them irl? I think i know what you want, some time ago I saw a library that does this. It is pretty hardcore stuff. Once I get close to my computer I'll check for you :D
-
devTea240885y@AlgoRythm yes I’m replacing the base dir and only show file extension specified on backend. Thanks for the concern
-
devTea240885y@AleCx04 yeah, but it won’t edit the content, it just shows folder and allow to download the files
-
@devTea Something I found is that browsers will correct for path transversals. You need to use cURL to truly test it.
curl --path-as-is localhost:8080/../sensitive_file.dat
Don't mean to tell you how to do your job, just offering some hopefully welcome experience. -
@err-occured I don't think he asked for a torturing tool, he just wanted a simple file explorer lol
-
@gitpush it does have a simple file explorer as it uses windows default file explorer layout. Granted it’s over 10 years old, but I’m sure you could make it work somehow 😂
-
devTea240885y@gitpush fuck sake 😂
@err-occured well this is going access shared folder so browser built-in mostly doesn’t allow a redirect to there -
rabbi16185yFor a similar task I had, I used ag-grid, they have good documentation for all front end frameworks and even a nice example on their website.
https://ag-grid.com/example-file-br... -
devTea240885y@rabbi already ended up building one, but I will check on it later, thanks for mentioning it
-
@devTea h5ai ? It's quite nice if that's the kind of thing you're looking for.
Anyone know a good js library for file explorer on html? Can’t find a good one on google
question