This is a migrated thread and some comments may be shown as answers.

uploads are 0 bytes

6 Answers 116 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stijn
Top achievements
Rank 1
Stijn asked on 04 Jul 2008, 03:42 PM
all files that i upload through the radeditor control are 0 bytes in size: the file is created but seems to have no content at all. what's happening?

6 Answers, 1 is accepted

Sort by
0
Stijn
Top achievements
Rank 1
answered on 07 Jul 2008, 07:53 AM
anyone?
0
George
Telerik team
answered on 07 Jul 2008, 09:24 AM
Hi Stijn,

This is the first time someone reports such a problem. Could you please open a support ticket and send us a simple sample project where the problem can be observed, along with the exact reproduction steps?

We will check it and do our best to provide a solution.

Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stijn
Top achievements
Rank 1
answered on 07 Jul 2008, 10:05 AM
that would be overkill since there is nothing special my case, it's just the editor and a scriptmanager.

i set all paths to the same directory in the code behind doing "editor.DocumentManager.ViewPaths = new string[] { path };", also for deletepaths and uploadpaths, for each of the managers. the directory is located in the root and even has full control permissions for the everyone group (for testing).

sometimes i also get an error saying "Exception Details: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds." could it have anything to do with that?
0
George
Telerik team
answered on 09 Jul 2008, 12:08 PM
Hi Stijn,

Could you please send us the complete error details (the Stack Trace). We will check it and do our best to provide a solution.


Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stijn
Top achievements
Rank 1
answered on 10 Jul 2008, 03:07 PM
this is the stacktrace from the error

[ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.]
   System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) +0
   System.Array.CopyTo(Array array, Int32 index) +65
   System.Array.CopyTo(Array array, Int64 index) +70
   Adam.Web.Core.MultiPartFormReader.ProcessByteBuffer(Byte[]& data, Int32 length) +461
   Adam.Web.Core.MultiPartFormReader.ProcessRequest(HttpContext context) +324
   Adam.Web.Core.AdamModule.OnExecuteRequest(Object source, EventArgs e) +317
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

i hope you can work something out based on this.
0
Tervel
Telerik team
answered on 14 Jul 2008, 06:58 AM
Hi Stijn,

Judging from the stack trace, the error results from the fact that you are using a custom Http Module - Adam.Web.Core.AdamModule.

We are not sure how the module functions, and what it provides, but clearly the error is not related to the editor. The editor file upload uses the default HTTP upload mechanism to send a file to the browser.

In case you are the author of this module and/or have access to the source code, one suggestion would be to check whether the upload comes from the editor and if yes - to let the ASP.NET framework handle it.


Kind regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Stijn
Top achievements
Rank 1
Answers by
Stijn
Top achievements
Rank 1
George
Telerik team
Tervel
Telerik team
Share this question
or