Forums » General Discussion Search

file url from a mac os 10.6 New Reply

Author Post
Posts: 1
Registered: Jan 31, 2010

Hey - I'm trying to upload a file from my computer and am not sure how to specify the file path. I'm on a mac, running OS 10.6. Do you know how I'd link to a track say, in my user file:

username/music/tracks-to-be-analyzed/track.mp3

Does that make sense?

Thanks, Zach

Posts: 4
Registered: Feb 18, 2009

Hi Zach - to upload a file for analyze, you should use an HTTP post with a multipart upload. I've described the mechanism in detail here:

http://musicmachinery.com/2009/04/04/track-upload-sample-code/

It is not for the faint of heart. I strongly recommend that you use one of the client libraries that have already implemented the upload. There are client libraries listed here:

http://developer.echonest.com/pages/resources

Also note that the upload method will take a url to an mp3 file, so if your audio is on the public internet you can use the url with the upload call and avoid dealing with the multipart upload.

hope this helps.

Paul

Reply to this Thread

You must log in to post a reply.