-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is Local File Upload Supported? #15
Comments
kengle3, were you able to find a solution? I'm in the exact same boat as you -- I can't for the life of me figure out what to pass to the 'track' parameter.. |
The current version of these bindings does not support local file upload. However, we did have someone modify the source code for our project to add the functionality. I suggested that he take the time to contribute the the code back to the project. I will see him next on Friday and let him know someone expressed interest in his solution. If he isn't interested in cleaning up the code, then I'll try to clean it up and submit it myself with his permission. It may take a bit to get around to it though because we are both university students dealing with finals for the next two weeks. |
I am wondering what the status is of this. I am trying to feed an mp3 that is located on my webserver to the echonest analyser (I've already written the uploader part). Is it possible in any way to pass the analyzer a url to analyse? |
Yes, I've added the methods for this. On Wed, Jun 19, 2013 at 4:20 AM, dorein [email protected] wrote:
|
Thank you for your quick response! I guess I can do it with $trackApi = $echonest->getTrackApi(); Do you happen to have any additional pointer, as I can't really find any documentation and I am new to this. Thanks! Edit... oh no, it seems that there is an upload function, still not really sure how to use that though. If you would have an example, would be extremely useful! |
What is the right way to call the getTrackApi()->upload method? What is exactly expected in the 'track' field of the array parameter of the upload method? Is it just the url towards the mp3 file I want to upload or is is the file converted in special data model. |
Hi, bshaffer! unfortunately does not show errors. |
Hello! Unfortunately I have not been keeping this library up-to-date… I'm On Friday, April 3, 2015, urii [email protected] wrote:
Sincerely, |
I could easily be doing it wrong, because I know the process is different for local files than urls.
Here is a minimized function call of what I'm attempting to do:
$results = $results->upload('../Libraries/54 The Con.m4a', true, 'm4a',$_FILES);
Currently this call just fails with no error message. My best guess is that passing $_FILES is not the correct way to pass the track, but I can't think of any way to pass it otherwise.
I tried unrolling it to the request() function, and I thought from the variable name" $url" it may be assuming a url is being passed. PHP isn't my strongest language though.
The text was updated successfully, but these errors were encountered: