|
Rank: Newbie Groups: Member
Joined: 1/4/2011 Posts: 6
|
Support,
I am working to enable the INSERT IMAGE button of the EO Editor Control. I'm using the Office 2003 Demo included with the latest version of the product. I'm using the ~/Demos/File Explorer/Explorer.aspx.
What is important here is that I get the AJAX Uploader working as I'll need users to upload the image that they wish to include in the Editor control. Where I am stuck --
1. User clicks the INSERT IMAGE button on the Editor Control. 2. Insert Image dialog appears. Click the elipses to bring up the File Explorer. 2. The Explorer.aspx page appears. 3. Click UPLOAD, browse to choose an image and click OPEN. The AutoUpload feature kicks off, progress bar is displayed. 4. A dialog pops up with the title "message from web page" and the message, "Call to the server failed. This can occur when multiple users attempt modify/delete the same item or when the code does not have sufficient permission."
I have verified that the TempFileLocation property is set correctly and has read/write permissions for "Everyone". I can see stubs of the upload attempt sitting there after the above 4 steps complete.
I have also set the RootFolder location to have read/write permissions for "Everyone" but this doesn't seem to be at issue here.
I'm not sure what I'm missing and hope you can give me some ideas.
Thank you, Grant Szabo
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
It sounds like you have done everything correctly. We will look into it and see if we can reproduce the problem here. If we can not reproduce it, we may need you to create a test app to reproduce the problem and send it to us. We will contact you again if that's the case.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have not been able to reproduce this problem. The exception occurs when the code tries to move the temp file to the target location (AJAXUploader always upload to a temp file first). So what you can do is to run your server side code in Visual Studio in debug mode, then go to Debug -> Exceptions dialog and check "Common Language Runtime Exceptions". Repeat the steps again and Visual Studio should catch the exception. That exception's exception message should tell you exactly what's wrong.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/4/2011 Posts: 6
|
I found the source of the problem -- the RootFolder property of the FileExplorer control was not set correctly. After updating this, the files are now uploading correctly.
But, now I have a new problem. When I choose one of the images after uploading for display in the editor and click OK, the image does not display in the Editor control. I'm guessing that it is setting the URL incorrectly, however, the HTML never writes to the Editor control, so am grasping at straws.
Any thoughts on this?
Thanks you very much.
Grant Szabo
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We can't think of anything that can cause that. Even if the Url is incorrect, it should still get inserted into the editor, it just won't display properly. You may want to compare your code with the sample code and see if you can find the difference.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/4/2011 Posts: 6
|
Thank you, I compared the source, and found that I was missing these two properties -- AcceptButton="OK" CancelButton="Cancel" -- in the FileExplorer definition. Once those properties were added, everything is working as expected.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
You are very welcome. Glad that you found that out!
|
|