J
J
JackShcherbakov2018-04-24 18:54:44
Web development
JackShcherbakov, 2018-04-24 18:54:44

How to securely upload files on the site?

Hello colleagues!
In general, outside the web document tree, there are user archives with html files generated by them. I need to make it so that users can somehow download these archives. As you can guess, the problem is that a href=... can't access files outside of the web document tree. But if you store these same archives in a web document tree, then a serious vulnerability will appear - anyone can get access to the archives!
How to properly secure file uploads?
Many thanks in advance to everyone who helps

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-04-24
@sim3x

https://www.nginx.com/resources/wiki/start/topics/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question