This project has moved and is read-only. For the latest updates, please go here.

upload or edit a text file in a document library

Oct 4, 2011 at 6:49 PM

Here is what I am trying to do. I am generating some text using JS and then I want to either upload that text as a file to a document library or edit the contents of an existing file.

I've been reading that uploading is not an option. Is there anyway to edit an already existing file? Or maybe some other way I am not thinking of?

Oct 4, 2011 at 10:13 PM

In general this is not really an easy thing to do per se. I have been successful in using the Copy web service and 64bit javascript encoding to modify a template file and then save this in a library. The files I worked with were excel files but I think you could make it work. I have some code on my old blog that might be of some use.

Aug 16, 2013 at 5:33 AM
I just saw this. Thank you so much. I'll look through what you got.