Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

File Upload in SPS 2003

  Asked By: Stacey    Date: Nov 16    Category: Sharepoint    Views: 1031

I'm currently working on custom file upload functionality in SPS 2003.

In this feature the user can able to upload any number of files on a single click in to the document library which he/she has access rights.

All the sharepoint services in the development environment are running under one common user (say ABC), the file uploading application uses impersonation option enabled and user name used was 'ABC' in order to get the full access to sharepoint objects. Otherwise I can not use any of the sharepoint objects with out impersonation.

The issue here I'm facing is who ever the uploads the file in to the sharepoint document library it takes the user 'ABC' in 'Last Modified By and Created By' fields in the file properties instead of the user who uploads the document. For example, if X has uploaded some files in to the document library. After uploading the files if he/she checks the file properties of Last Modified By and Created By values which appeared at the bottom of the page showing the impersonated user 'ABC' instead of 'X'.

Can any one help out in order to resolve this issue and update the respective user who uploads the file in to document library instead of impersonate user.



4 Answers Found

Answer #1    Answered By: Alexis Ellis     Answered On: Nov 16

We have included some customs fields in to the page and also we are making the some database updates during uploading files.

We are trying to implement multiple files upload  feature and so we have included the customized page instead of standard built-in upload page. FYI, there is a facility for built-in multiple files upload feature in sps  2003 but we are not able to update customs fields for each file.

Since sharepoint services are running on a common user, and in customized page we are impersonating through that user in order to make use of all the sharepoint objects. Because of impersonization we are not able to get the user details who has currently logged in to the site instead we are getting the impersonized user details.

Please help me out in order to update "Last Modified By and Created By" fields of file  properties during uploading.

Answer #2    Answered By: Percy Beach     Answered On: Nov 16

Try reading this info into an array before uploading and then updating from this array after uploading.

Answer #3    Answered By: Mary Adams     Answered On: Nov 16

You may want to see if this helps:


Answer #4    Answered By: Kyla Eckert     Answered On: Nov 16

I would suggest writing an event handler for the library and then you can update your custom fields.

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