More in this section
Forums / Bugs & Issues / Upload and replace existing file

Upload and replace existing file

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Thirumal
    Thirumal avatar
    2 posts
    23 Jan 2012
    20 Jun 2012
    Link to this post
    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