A Nexus 7 tablet serves as a HTTP server using HTTPServer Lib 1.0. In the ServerService module I use this code to download the file to other client devices when they access the server:
The file is downloadeded to the device’s ‘Download’ folder with a name: downloadfile.bin instead of LP1051213061213.txt which is the name in the server.
1. How can it be saved with the original server name and to a different folder other than ‘Download’ folder?
2. How can I upload files from a specific device folder to the server specific folder?
Thank you for helping a needy member.
B4X:
Response.SendFile(File.DirRootExternal & "/POC","LP1051213061213.txt")
1. How can it be saved with the original server name and to a different folder other than ‘Download’ folder?
2. How can I upload files from a specific device folder to the server specific folder?
Thank you for helping a needy member.