More in this section

Forums / Bugs & Issues / Upload and replace existing file

Upload and replace existing file

1 posts, 0 answered
  1. Thirumal
    Thirumal avatar
    2 posts
    Registered:
    23 Jan 2012
    20 Jun 2012
    Link to this post
    Hi,
    I am trying to upload a file in sitefinity library using code. Below is the method which I am using

    UploadFile(byte[] buffer, string fileName, string fileExtension, string mimeType, long streamLength, ILibrary library, bool overwrite)

    My requirement is to  replace file by keeping the same GUID. But this method might be removing the old file and adding a new file and creating a new GUID which is breaking the site where ever I am referring the file.

    Is there any method which I can use to reupload a file for the same GUID?
     
1 posts, 0 answered