Closed wongsyrone closed 2 years ago
This pull request introduces 2 alerts when merging 17bf258ea1fe986bdcd9accba23830832cc8a6e2 into e2c651ad0579f580686dfee4c0c2007d88a3b336 - view on LGTM.com
new alerts:
Hello, @wongsyrone!
I don't think that such a feature should be included at the application level. Serving user-specific files should be made at the web-server level. Setting up caddy/nginx/apache is way better solution for downloading user-specified files.
@dec0dOS
Setting web servers is not out of the box and it's not easy to ensure access control.
Thanks for clarifying, @wongsyrone.
Anyway, I could not accept the PR in its current state. Such functionality should be hidden under the ENV flag properly and the explanation with the use cases of this feature. Could you provide a detailed way on how you use this feature and why?
I'm not familiar with the Node.js tech stack, it's the best I can do. If you cannot merge, I'll keep this as my fork.
This pull request introduces 2 alerts when merging 2d4ef28d26566e3b7e1fd4c8b72dfcb1ace1854a into e2c651ad0579f580686dfee4c0c2007d88a3b336 - view on LGTM.com
new alerts:
feat: backend: new api to download file such as planet
/PROJECT/frontend/down_folder/ http://locahost:4000/downfile/:downfilename
feat: frontend: add file download component for ease of use
Signed-off-by: Syrone Wong wong.syrone@gmail.com
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
No download support
What is the new behavior?
/PROJECT/frontend/down_folder/
Does this introduce a breaking change?
Other information
Testing docker image: https://hub.docker.com/r/wongsyrone/ztcontrollerzerouiwithplanetpatch
Example Usage: