Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How do I upload a document (PDF) to a library and create a link to it in another library?

I need to do this using SPServices specifically..

share|improve this question
    
Do you mean web services generally, or specifically the SPServices jQuery library? –  SPDoctor Nov 8 '11 at 17:23
    
Specifically the SPServices jQuery library. –  Arun Nov 8 '11 at 17:38
    
what Sharepoint version are you on? –  spevilgenius Nov 8 '11 at 19:19
    
Sorry, missed that. It's SP 2007. –  Arun Nov 8 '11 at 20:02
add comment

1 Answer

The big point here is that to upload a file via the web service, you must convert it to a stream and send it through the web service. That conversion and streaming can (depending on the file size) take a significant amount of client side resources, since it's all being processed with JavaScript. This is far less efficient than say the HTTP upload mechanism that the out of the box SharePoint forms use. This is one of those examples of a solution that you "can" do, but possibly shouldn't.

Could you give us a better overview of the problem you're trying to solve with the solution?

share|improve this answer
    
The problem is that the user wants the document to be uploaded to two libraries. I'm trying to minimize it by putting it in one lib and creating a link to it in another lib. –  Arun Nov 21 '11 at 19:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.