I am updating Documents on Sharepoint using the List.asmx web service.
But problem I am facing is:
Edit: As said by "Janis Veinbergs" We can't get this ID until document is actualy saved. So how will I update document as ID field is must for Update?
If I don't Put ID Field:
Error : 0x8102000aInvalid URL Parameter The URL provided contains an invalid Command or Value. Please check the URL again.
If I put Null Value to it:
Error :0x81020016Item does not exist The page you selected contains an item that does not exist. It may have been deleted by another user.
Is there any way to set document properties at the time of uploading files on Sharepoint?
****Note: I am uploading file in Chunck.And Not using Microsoft.sharepoint.dll **** Language: C#.
I tried this code. But here again properties are being set after uploading file.
number 2 -> One is for sure - you can't get database row ID of document before it is actually saved into database.
The page linked to in the question actually links to a newer option using a FrontPage RPC method to post documents to SharePoint: http://geek.hubkey.com/2007/11/upload-file-to-sharepoint-document.html
I would use that instead.
If you need to upload multiple files, you can use this method. If you need to upload one file, try this one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With