Re: Upload a file and modify its atributes generates two versions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tako (mi_at_e.mail.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 13:15:45 +0200


    I have changed the form to upload files to the SPSv2, now first I modify
the properties of the file before upload it to the SPSv2, this works and it
does not generate two versions, but only works with Office file types, if
attempt to upload another file type (one Zip for example) the SPS does not
recognize the metadates.

    Somebody knows any way to fix this? or a walkaround maybe?

    Thank you very much.

Tako wrote:
> Hi group!
>
> I'm doing two things at the same time: uploading a file to
> SPS2003 and modifying its atributes.
>
> file = SPWeb.Files.Add....
> element = file.item
> element("customAtribute") = "value"
> element.update
>
> The problem is that the system generates 2 new versions of the
> document; one the the uploaded document and the other wtih the new
> atributes.
>
> Is anyway to change the atributes without generating a new
> version?
>
> Thank uuuu!!



Relevant Pages

  • Re: [WEB SECURITY] [Web Security] File Upload Virus Scanning
    ... First I had to gather a list of all file formats the business intentionally wanted uploaded. ... couldn't upload files with other extensions. ... Step 2: Verify allowed file types ...
    (Security-Basics)
  • Re: [WEB SECURITY] [Web Security] File Upload Virus Scanning
    ... [WEB SECURITY] File Upload Virus Scanning ... Step 2: Verify allowed file types ... be executed in your browser as HTML. ...
    (Security-Basics)
  • Re: Opening in unwanted programs
    ... Choose Folder Options. ... Choose "File Types". ... Whenever I double click on a picture> it uploads in a program I don't want it to upload in. ... Is there anyway to change from one program to another,> so that when I double click on a picture it'll upload in> the right program? ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Getting a list of file types
    ... rule it will send the uploaded file to a directory on the server if not the ... user is forwarded to page which has a dropdown list of file types, ... select the type of file they wish to upload and the directory on the server ... file with the same extention it goes straight to the folder it was assigned ...
    (microsoft.public.dotnet.framework.aspnet)