Page 1 of 1

Can I use Transfer via Local Network to transfer a directory?

Posted: 29 Dec 2015 02:10
by FrazzleDancer
My music collection is large, and manually selecting every file will be ... painful. If I select a directory, will it and its contents be transferred?
Barring that, can someone describe the HTTP POST request that gets sent to transfer a file, so I might write a shell script w/find+wget to automate the task?

Re: Can I use Transfer via Local Network to transfer a directory?

Posted: 29 Dec 2015 19:43
by FrazzleDancer
Used Wireshark to capture the file upload HTML & JavaScript and the resulting HTTP POST... reading up on curl now (wget can't POST multipart).

Re: Can I use Transfer via Local Network to transfer a directory?

Posted: 30 Dec 2015 04:04
by FrazzleDancer
Hey, someone else beat me to it! http://blog.ithasu.org/2013/07/uploadin ... mand-line/
Looks like this one-liner should do it:
find Music -type f -exec curl -F files[]=@{} http://my-phones-url/upload.json \;