user213345
user213345

Reputation:

How do I upload a file when I know the client's filepath?

I'm interested in the way Sonic Living detects your iTunes library XML file. It prompts the user to approve its actions, then automatically uploads the XML file based on the client OS (and assuming the default installation path of iTunes).

How the heck does it do that? None of the upload libraries I've looked at have this feature. They all assume that a user will click "Select file..." then browse around for the right thing to upload.

Upvotes: 1

Views: 112

Answers (1)

Gelatin
Gelatin

Reputation: 2413

It uses Java. See this tutorial for how to read local files (with authorisation).

Now we need to make an (inofficial) certificate. It IS a certificate, but the browser-plugin will display a certificate-requester, which says that it is unofficial. We do not need to care about this - the user has to decide if he trusts you or not.

http://www.captain.at/programming/java/

Upvotes: 1

Related Questions