Upload via API

208 views
Skip to first unread message

Ross

unread,
Apr 12, 2008, 2:23:35 AM4/12/08
to SlideShare Developers
I'm trying to upload via the API, and unfortunately all the powerpoint
files I upload fail the conversion process. Uploading the same file
via the web interface succeeds, and no error messages are thrown
during the upload, so either something I am doing is corrupting the
file, or the API has some sort of incompatibility with what I'm
doing.

The basic of what I'm doing (a little code removed) is the following:

$req = new HTTP_Request();

$req->setMethod(HTTP_REQUEST_METHOD_POST);
$req->setURL($uploadURL);

//add all the necessary info

$req->addFile("slideshow_srcfile", "Reactor.ppt");

$req->sendRequest() or die;
$responseBody = $req->getResponseBody();

//process the response

The response contains a valid ID, and getting info on that ID works
fine, and then eventually the upload status of the uploaded file
becomes failed. Any ideas?

tlrobinson

unread,
Apr 12, 2008, 6:24:49 AM4/12/08
to SlideShare Developers
I've been working with Ross on this and I'm having the same problem,
but with a simple "curl" command instead of the PHP code. I threw
together a little shell script that seems to be making valid requests,
but again the uploads are failing:

http://tlrobinson.net/misc/slideshare.sh.txt (need to fill in key,
secret, username, and password)

Additionally, it doesn't list any of the presentations I successfully
uploaded via the web (which *do* show up on my profile) but other
usernames do work.

Also, it gives me a "Failed User authentication" message for any
account other than the one we registered our API key with.

Thanks.

Gaurav Gupta

unread,
May 27, 2008, 11:59:55 AM5/27/08
to SlideShare Developers
I hope both your concerns have been addressed and the conversion goes
through properly now. The API key account has also been decoupled from
the Slideshare account specified with the username/password
combination.

Gaurav Gupta
Slideshare

On Apr 12, 3:24 pm, tlrobinson <yacht...@gmail.com> wrote:
> I've been working with Ross on this and I'm having the same problem,
> but with a simple "curl" command instead of the PHP code. I threw
> together a little shell script that seems to be making valid requests,
> but again the uploads are failing:
>
> http://tlrobinson.net/misc/slideshare.sh.txt(need to fill in key,

Sathish Kumar

unread,
Jan 6, 2013, 12:34:45 PM1/6/13
to slideshare...@googlegroups.com
Hi Gaurav,

I am also facing the same issue(same issue as defined by Ross) when I try to upload files through API. Please let me know, If there any fix available for this issue.

Regards,
Sathishkumar V
Reply all
Reply to author
Forward
0 new messages