4

I am storing HTML files in a SharePoint document library (2013). Unfortunately, every time I upload a file, SharePoint is adding some code, the same as here: Why is SPD adding content to my file?

I am not using SharePoint Designer, but Windows Explorer. Those HTML files are not part of any SharePoint pages, they should be treated as any other documents in a document library.

Is there any way to disable the ghosting functionality for a specific document library (or a site collection) so the files content remain as original?

Or maybe a different way of storing HTML files in SharePoint 2013?

  • what is it adding to your html file? – Gwny Aug 25 '15 at 11:37
  • The same code as in here: sharepoint.stackexchange.com/questions/30626/… – tsap Aug 25 '15 at 11:38
  • Why does it bother you? – Gwny Aug 25 '15 at 12:32
  • The files are stored in an external source and the source is periodically updated. I want to create a schedule task to check if the files I have in SharePoint are different to those in source and get all which are new or updated. The problem is that the comparison says that all the files are different all the time. – tsap Aug 25 '15 at 12:40
  • how are you comparing? – Gwny Aug 25 '15 at 12:52
2

Depending on what you are using the html files for, you can try changing the extension. For example, call a file content.html.txt.

One thing I store html files for is to link them to content editor web parts. In that case the extension doesn't matter.

0

Problem is that this is SharePoints' way of storing metadata in your file. SharePoint also does this to your word files. This is desired behaviour.

  • How can this be desired behavior? – parvus Feb 9 '18 at 5:10
  • It's desired by sharepoint ;) So if you download and upload the file, the metadata gets merged. – Gwny Feb 9 '18 at 14:53
  • "desired behavior" my ass. – JD Long Nov 29 '18 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.