Download Link Greyed Out

80 views
Skip to first unread message

Dan DeLuca

unread,
Oct 11, 2009, 11:02:30 PM10/11/09
to Scribd Platform Talk
Hello,

So I almost have my Scribd API working as I wish. One little nagging
bug remains. I am uploading documents set as private using the
unofficial php class. Like this;

$file = $target_path; //a reference to the file in reference to the
current working directory.
$doc_type = $blocks[1];
$access = "private";
$rev_id = null;
$download_and_drm = "download-pdf-orig";
$data = $scribd->upload($file, $doc_type, $access, $download_and_drm,
$rev_id);

$did = $data["doc_id"];
$dkey = $data['access_key'];

Then calling the documents with a very basic javascript API embed like
this;

<div id=\'$primid\'><a href=\'http://www.scribd.com\'></a></div>
<script type=\'text/javascript\'>
var scribd_doc = scribd.Document.getDoc( $did, \'$dkey\' );
var oniPaperReady = function(e){
// scribd_doc.api.setPage(3);
}
scribd_doc.addParam( \'jsapi_version\', 1 );
scribd_doc.addEventListener( \'iPaperReady\', oniPaperReady );
scribd_doc.write( \'$primid\' );
</script>

If I go look at the documents in Scribd homepage they are set to be
allowed to download, but when the embed flash loads the Download link
greys out. Any Suggetstions??

Dan

Jared Friedman

unread,
Oct 12, 2009, 3:08:19 PM10/12/09
to scribd-platfo...@googlegroups.com
Hi Dan,

For security reasons, we don't allow downloading of private documents within iPaper.  I can see what you mean, though, about the download_and_drm options seeming to imply that it would be possible.  We'll update the docs to reflect this.

Currently, you need to get the download link yourself using docs.getDownloadUrl and print it below the viewer:
http://www.scribd.com/developers/api?method_name=docs.getDownloadUrl

Jared

Ryan Gahl

unread,
Oct 12, 2009, 3:28:32 PM10/12/09
to scribd-platfo...@googlegroups.com
In that case, the download link (and other functionality that's not possible with private docs) should be removed from the iPaper interface.

Would be nice if this was all configurable so that we could decide how to treat the docs on a per app or per iPaper instance (i.e. allow download if we instantiate iPaper with our apiKey/secret and tell it to allow download, etc)...

---
Warm Regards,
Ryan Gahl

Dan DeLuca

unread,
Oct 12, 2009, 6:08:37 PM10/12/09
to Scribd Platform Talk
Hey,

Thanks for clarifying this. Just my two cents. I would like to be
able to set a document as private, so it is not indexed and shown on
the scribd homepage but allowed to be downloaded. My users (students
and teachers) are exchanging documents behind a password protected
site. The separate download link in addition the the greyed out
download link would work but creates UI problems. (Teachers and
students are very sensitive to these). Still thanks for a great
product.

Dan

On Oct 12, 3:28 pm, Ryan Gahl <ryan.g...@gmail.com> wrote:
> In that case, the download link (and other functionality that's not possible
> with private docs) should be removed from the iPaper interface.
>
> Would be nice if this was all configurable so that we could decide how to
> treat the docs on a per app or per iPaper instance (i.e. allow download if
> we instantiate iPaper with our apiKey/secret and tell it to allow download,
> etc)...
>
> ---
> Warm Regards,
> Ryan Gahl
>
>
>
> On Mon, Oct 12, 2009 at 2:08 PM, Jared Friedman <ja...@scribd.com> wrote:
> > Hi Dan,
>
> > For security reasons, we don't allow downloading of private documents
> > within iPaper.  I can see what you mean, though, about the download_and_drm
> > options seeming to imply that it would be possible.  We'll update the docs
> > to reflect this.
>
> > Currently, you need to get the download link yourself using
> > docs.getDownloadUrl and print it below the viewer:
> >http://www.scribd.com/developers/api?method_name=docs.getDownloadUrl
>
> > Jared
>

da2na

unread,
Oct 14, 2009, 10:54:51 PM10/14/09
to Scribd Platform Talk
I'm having the same issue with an application that I have developed.
It would be terrific, if you could set the download option via the
API. Alternatively, one should be able to add/remove the download
link via the API. Just another vote for what should be a simple
fix...

-Fernando

On Oct 12, 3:08 pm, Dan DeLuca <thegat...@gmail.com> wrote:
> Hey,
>
> Thanks for clarifying this.  Just my two cents.  I would like to be
> able to set a document as private, so it is not indexed and shown on
> the scribd homepage but allowed to be downloaded.  My users (students
> and teachers) are exchanging documents behind a password protected
> site.  The separatedownloadlink in addition the thegreyedoutdownloadlink would work but creates UI problems.  (Teachers and
> students are very sensitive to these).  Still thanks for a great
> product.
>
> Dan
>
> On Oct 12, 3:28 pm, Ryan Gahl <ryan.g...@gmail.com> wrote:
>
>
>
> > In that case, thedownloadlink (and other functionality that's not possible
> > with private docs) should be removed from the iPaper interface.
>
> > Would be nice if this was all configurable so that we could decide how to
> > treat the docs on a per app or per iPaper instance (i.e. allowdownloadif
> > we instantiate iPaper with our apiKey/secret and tell it to allowdownload,
> > etc)...
>
> > ---
> > Warm Regards,
> > Ryan Gahl
>
> > On Mon, Oct 12, 2009 at 2:08 PM, Jared Friedman <ja...@scribd.com> wrote:
> > > Hi Dan,
>
> > > For security reasons, we don't allow downloading of private documents
> > > within iPaper.  I can see what you mean, though, about the download_and_drm
> > > options seeming to imply that it would be possible.  We'll update the docs
> > > to reflect this.
>
> > > Currently, you need to get thedownloadlink yourself using
> > >> allowed todownload, but when the embed flash loads theDownloadlink
Reply all
Reply to author
Forward
0 new messages