Does anyone know why my programmatically uploaded Docx files arrive corrupted? I've seen more messages of this problem all over the internet without a solution.
Would it be possible for someone to post some code that would work?
|
Does anyone know why my programmatically uploaded Docx files arrive corrupted? I've seen more messages of this problem all over the internet without a solution. Would it be possible for someone to post some code that would work? |
||||
|
|
|
Not sure about other examples but this one works for me (using application page) Application page markup contains:
Code behind (eg. on button click):
However I had experienced some corrupt file uploads in past (office docs) but only when I tried to include metadata while adding file (and not always). To avoid this I am setting all additional field values after file is added.
Note: I am using |
|||
|
|