This project is read-only.

Document revision - how?

Developer
Feb 28, 2009 at 9:22 AM
Paul -

I have a web app that allows end users to upload to scribd. It's working fine but now I want the end user to be able to edit the document locally and then resubmit.

I don't want to create new scribd keys for the document versions, I want them to retain the existing key. I just want to be able to update the contents of the document, everything else stays the same.

Is this possible using the library?

cheers,

Steve
Developer
Mar 3, 2009 at 8:53 AM
Paul -

I can see that I can use RevisionId like this:

Scribd.Net.Document settings = Scribd.Net.Document.Upload(_fileStream, "pdf");
settings.RevisionId = 1;

What happens in Scribd when this is set?
Does Scribd overwrite the original file contents with the new file?
If I set the RevisionId, do I therefore always need to factor this is when I return any documents from Scribd?
If so, how do I set this for a search?

cheers,

Steve




Developer
Mar 7, 2009 at 10:05 AM
I was able to get it working like this:

Scribd.Net.Document.Upload(strPathToFile, AccessTypes.Public, 1111111, "pdf")

where 1111111 is the scribd documentId for an existing document on scribd.

I've tested it and all that changes on scribd is the content of the document - perfect!