Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rick 4 posts 25 karma points
    Nov 13, 2009 @ 09:50
    Rick
    0

    Multiple File Upload breaks the "Insert picture -> Create new" in the rich text editor

    The "Multiple File Upload" works fine after applying the quickfix. There's only one thing bugging me: the "Insert picture -> Create new" in the rich text editor functionality breaks after trying to upload from there. I get the following error:

     

     

    Input string was not in a correct format.

     

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: Input string was not in a correct format.

    Source Error:

    [FormatException: Input string was not in a correct format.]
    System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7469351
    System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
    umbraco.editorControls.uploadField.Save() +2083
    umbraco.dialogs.uploadImage.Page_Load(Object sender, EventArgs e) +661
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

     

    I use Umbraco 4.0.2.1 on .Net 3.5.

     

    Any ideas?

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Nov 13, 2009 @ 09:59
    Chris Houston
    0

    Hi Rick,

    I have not used the control but I assume it returns a comma seperated list of Node ID's in a string. Looking at the error message you have there it says:

    [FormatException: Input string was not in a correct format.]

    Which comes from the function:

    System.Number.StringToNumber

    So my guess is that you cannot use the multiple uploaded in the rich text editor, which kind of makes sense as when you upload an image in the Richtext editor usually you will want to position it and then upload another, why would you need to upload multiple images in the editor?

    Cheers,

    Chris

  • dandrayne 1138 posts 2262 karma points
    Nov 13, 2009 @ 11:04
    dandrayne
    0

    Hi Rick

    The multiplefileuploload, although great, has a bug in that it breaks normal image uploading.  Read here for a fix -> http://our.umbraco.org/forum/using/ui-questions/5070-Uploading-images-in-RTE-throw-error.

    Cheers,
    Dan

     

  • dandrayne 1138 posts 2262 karma points
    Nov 13, 2009 @ 11:45
Please Sign in or register to post replies

Write your reply to:

Draft