Are multiple <download> elements allowed in one Locus Action XML?

Bob Denny shared this problem 6 years ago
Solved

I made up a Locus Actions XML file with several <download> sections, however only the first one is being completed. Is this a limitation?

Comments (5)

photo
1

I'm sure it is not. It do not work for you with latest version?


Sample below is tested (i used it few days ago) so something like this should work. Just check if you don't have any issue in your file. If you don't think, you'll have to share it with me so I can check it.

photo
1

I believe I have found the problem, then. If the <source> file has any spaces in the name, it fails. It is OK to have spaces in the <dest> file name. My second through 7th files had spaces in their names. I renamed the files on the server, leaving the <dest> names as I wished them on Locus, and the process completed. See attached for original failing process.

photo
1

I should add that these are maps, so I realized that a much better way to handle this is to compress them into a zip and use <after>extract|deleteSource|refreshMaps</after>. I am testing this now!


[edit] Yes this is much better, though it actually succeeded with an incorrect number in size=nnnnn

photo
1

If you want to downlaod any data from url, this url needs to be valid. And URL with spaces is not valid.


You have to encode it, so in this case, just replace spaces with '+' and it should work.


  1. <source">
  2. https://dl.dropboxusercontent.com/.../my+map.sqlitedb
  3. </source>

This should work correctly

photo
1

Oh, nice, I am having a fading spell. Of course I know this. Sorry. All this for a stupid mistake.