B4J Question Design of file server files page

derez

Expert
Licensed User
Longtime User
Using
B4X:
srvr.StaticFilesFolder = File.Combine(File.DirApp, "www")
in a file server, calling the server ip from a browser displays the files in the www directory, with "Directory:/" header.
How can I change the design of this page ?
I can view the source but where is the place to change it ?
 

derez

Expert
Licensed User
Longtime User
Do you know where the default html page is ? I don't know how to write it from scratch, I hope I could edit it (how to make a list of the files in the directory ?)
 
Upvote 0

derez

Expert
Licensed User
Longtime User
I have one small problem - Hebrew letters appear as "?". Pressing the link replaces the page with the default page and there it shows correctly. Is it because java does not support Hebrew ?

Edit: Found it, I changed to this:
B4X:
resp.ContentType = "text/html;charset=UTF-8"
 
Last edited:
Upvote 0
Top