<< Click to Display Table of Contents >> Navigation: Requests dispatch > Static files |
To allow access to static files in some folder under /web folder, add the following code on server creation:
Dispatch.Add('folder_name', StaticFile);
This will allow all users to request files in web/folder_name directory and its subfolders by calling /folder_name/file_name URL.
To allow access only for authorized users use:
AuthDispatch.Add('folder_name', StaticFile);
for Administrator only:
AdminDispatch.Add('folder_name', StaticFile);
MIME types will be determined automatically from file extension.