Upload and replace existing file - Bugs & Issues - Bugs & Issues - Progress Community
 Bugs & Issues

Upload and replace existing file

  • Upload and replace existing file
  • 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?