06-24-2023, 10:16 PM
I suggest that you create 2 subfolders beneath the folder where the executable is, for instance:
\Downloads
\Uploads
They will be in the same level where wwwroot folder is:
\Downloads
\Uploads
\wwwroot
This way they can't be targeted by any incoming request (IntraWeb will never serve a file outside wwwroot folder, unless you explicitly command it from server code, not from an incoming request)
For downloads, if you are not using SendFile/SendStream you will need to move the files from \Donwloads to the cache using one of several methods to add a file to the cache.
\Downloads
\Uploads
They will be in the same level where wwwroot folder is:
\Downloads
\Uploads
\wwwroot
This way they can't be targeted by any incoming request (IntraWeb will never serve a file outside wwwroot folder, unless you explicitly command it from server code, not from an incoming request)
For downloads, if you are not using SendFile/SendStream you will need to move the files from \Donwloads to the cache using one of several methods to add a file to the cache.

