[Mono-bugs] [Bug 418012] WebClient.UploadFile = 500 internal server error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 21 19:42:10 EDT 2008


User surfzoid2002 at yahoo.fr added comment

--- Comment #1 from Eric Petit <surfzoid2002 at yahoo.fr>  2008-08-21 17:42:10 MDT ---
Okay some news intersting news, i have write better the uploadfilecore function
and now it upload file greate , but with a little problem, it cannot upload a
file  more than 62000 bytes/60.55 KB , i write a loop who create a file by step
of 100 byte and so i see on the OBS server the last file have this size 60Ko
all other largest files aren't on the server and doesn't emit error.

The loop is :

                                for (int i = 1; i < 200; i++) {
                                        byte[] SizeTest = new byte[i * 1000];

                                        for (int j = 0; j < SizeTest.Length;
j++) SizeTest[j] = 34;

                                        string TmpFs = Path.GetTempFileName();


            TmpFs = TmpFs.Replace(".tmp", "testko." + i * 1000);

                File.WriteAllBytes(TmpFs, SizeTest);

                PutSourceProjectPackageFile.PutFile(VarGlobal.User, Package,




PutSourceProjectPackageFile.PutFile is at : 
This one call the UploadFileCore, UploadFileCore is at :
Line 183

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list