The PHP Sample Upload does not work. Get an Error, method not declared.
$this->makeUploadRequst($params);
Seems like this is a typo???Requst?
Shouldn't it be $this->makeRequest($params); based on the other calls I see?
Any Solution?
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Hi Brian,
This is a gap in our current PHP code. We created a template to trigger an upload, but the upload code needs work.
Part of the issue is the uniqueness of locations from which a PHP upload may occur. However, it shouldn't be too tricky to figure out what works best for you PHP instance. From experience, most developers are able to get a Curl upload working, with some help from a PHP forum such as http://www.codingforums.com/showthrea... -
-
Hey, Thanks for the reply.
I changed the $this->makeUploadRequst($params); to $this->makeRequest('upload', $params);
and I get this
Upload Request: http://upload.box.net/api/1.0/upload/...
XML Response
wrong auth token
Account Tree Return
Array
(
)
I know my auth_token is correct. Is there any easy fix to get this method working or should I go with Curl? -
-
Hi Brian,
When performing the upload, the URL should be in the format of https://upload.box.net/api/1.0/upload// . It looks like you have "file_name" instead of "folder_id" (see http://developers.box.net/ApiFunction... ).
You'll also need to provide the location of the file rather than the filename (you'll see that in the curl sample on Codingforums.com) -
-
This function not working is really impacting being able to enter the twilio.com contest this week. Also really impacts being able to make use of box.net in apps like I want to.
-
-
Hi Roger,
Have you been able to try the recommended PHP Curl upload code from http://www.codingforums.com/showthrea...? While we continue to update our code samples, that may help you out. We found that most PHP developers rely on the type of process in that forum post for file uploading. -
-
I got something working, but it's buggy, for example you return just straight upload_ok instead of xml, meaning the rest of the code that checks if the upload went through ok or not is in turn busted as well.
-
-
Hi Roger,
That doesn't sound right - it could be an issue in our API rather than the PHP code. If the upload is successful, we're supposed to return 'upload_ok' in an xml string that includes additional information about the file. Can you share some code here so that I can better evaluate what may be happening? Feel free to email us at developers@box.net if you don't want to share your code (although forum posts are preferred for the community to help & leanr). -
Loading Profile...


EMPLOYEE
