Hi,
I am using the server feature in B4J and I am using the following as an example:
Lets say there is a file named bob.xml in the www directory.
When a user views this file http://127.0.0.1:8888/bob.xml is there a way to then delete it? (even if it deletes the file 5 minutes later?)
I am using the server feature in B4J and I am using the following as an example:
B4X:
Sub Process_Globals
Private srvr As Server
End Sub
Sub AppStart (Args() As String)
srvr.Initialize("srvr")
srvr.Port = 8888
srvr.StaticFilesFolder = File.Combine(File.DirApp, "www")
srvr.AddHandler("/hello", "HelloPage", False)
srvr.AddHandler("/FormExampleHelper", "FormExampleHelper", False)
srvr.AddHandler("/FileUpload", "FileUpload", False)
srvr.Start
StartMessageLoop
End Sub
Lets say there is a file named bob.xml in the www directory.
When a user views this file http://127.0.0.1:8888/bob.xml is there a way to then delete it? (even if it deletes the file 5 minutes later?)