Files sent via Webdav (nonpub) are published automatically and overwrite existing versions.
I was able to reproduce this on Ubuntu Linux + WebDav. Here are the steps to reproduce it.
1) Upload a JSON or TXT file using the Website browser. 2) After saving/publishing it, open it (again, using the Website Browser) and edit its contents. Save/publish it. 3) Hit the file URL., e.g., http://localhost/test/jsontest.json to see if the changes were applied properly. 3) Upload the original version of the JSON/TXT file via webdav/nonpub (this should upload the file but won't publish it). 4) Hit again the URL from step 3. See that the edited version in step 2 was overwritten by the webdav upload.
See http://jira.dotmarketing.net/browse/EE-5405 for more info
working great to preserve versions even when uploading duplicate via nonpub connect