Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

File Upload Dilemna

  Asked By: Garret Stephenson         Date: Aug 02, 2005      Category: Sharepoint      Views: 157
 

I was hoping to get some insight on an issue we're struggling with
on a Sharepoint File upload process.

The objective of the code is to upload a file *with additional
metadata* to the Sharepoint server using the Sharepoint APIs. The
issue seems to revolve around the fact that you can't do a
Sharepoint.SPFile As 'New'. Right now this leads to a work around
to first generate the file with docLib.Files.Add and then populating
the metadata on the object and implementing an .Update method on the
ListItem. Effectively what this seems to be doing is creating the
new Sharepoint.SPFile on the server and then incrementing an
additional version of the file when the metadata is populated. The
additional version is one issue (storage being the primary concern)
but another issue is the delay on the browser as the client waits
for the upload to execute twice (this process is being called from
an ASP.Net page). Here is a 'trimmed down' copy of the code ... if
anyone has some insight on what we're overlooking for options here
it would be VERY appreciated.


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:      

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on File Upload Dilemna Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].