c# - Corrupt Files after uploading on server -
i have problem webapplication. have made upload-function uploading documents. local on debbuging works without problem. when run application on server works also, files after upload corrupt (e.g. word-file has signs instead correct text).
i think error must somewhere in server-setting or maybe in webconfig? search since hours solution can't find similiar problem (yes, maybe search wrong keywords :(
has solution? thank you!
my code:
<asp:fileupload id="fileupload1" runat="server" /><br /> <asp:button id="btnupload" runat="server" text="datei hochladen" onclick="btnupload_click" /> code behind
//some code save fileinfos in database... ... ... //upload file fileupload1.saveas(path + filename); there no errormessage post, because works fine. problem corrupt files after uploading on server (local works)
i can't see byte array generation code here(the section have commented above) if ok in code, byte array received stream corrupted. may because of errors in client side java script codes. local test ok. may because of network settings ?! if packet payloads corrupted, on server side corrupted well. have firewall in middle ?! signature matching application ?!
Comments
Post a Comment