kdudkov / goatak

go ATAK/CivTAK fast and simple server and client
https://github.com/kdudkov/goatak/wiki
GNU Affero General Public License v3.0
112 stars 31 forks source link

Some changes to fix the path problem under windows system and android TAK client #20

Open kbtxwer opened 2 weeks ago

kbtxwer commented 2 weeks ago
  1. improve the body limit so that it can be able to send large files
  2. directly write the file to it path instead of using a tempfile to avoid the rename operation on windows because it is easy going wrong
  3. modified the "getMetadataGetHandler" function to keep the same performance as the FreeTAKServer
  4. use "ctx.BaseURL() + packageUrl(pi)" instead of "packageUrl(pi)" because my tak client cannot determine which server to connect when the url is not given as full path, even when there is only one server connected. The FreeTAKServer also returns the full path url.
kdudkov commented 2 weeks ago
  1. good point, tnx
  2. if upload fails we can loose file this way
  3. afaik getMetadataGet should return Tool field only, not file
  4. what is your tak client? ATAK/itak work well