Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

failure with local file upload

$
0
0

Finally got it, thanks for your help guys! Problem 1 was what you pointed out, and problem 2 was Unity making it hard to change the request header. The WWWForm was not needed. If anyone ever needs to know:

byte[] track= www.bytes;
string url = "http://developer.echonest.com/api/v4/track/upload?api_key=API_KEY&filetype=ogg";
Hashtable headers=new Hashtable();
headers.Add("Content-Type","application/octet-stream");
WWW post = new WWW(url, @track ,headers);

Again, thanks for the help.


Viewing all articles
Browse latest Browse all 1582

Trending Articles