1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Browser Issue The submitted message is too long to be processed. Please shorten it.

Discussion in 'Resolved Bug Reports' started by erich37, Jun 18, 2013.

  1. erich37

    erich37 Well-Known Member

    I have put 3 images from "Google image search" via "Drag & Drop" into the Editor.
    The 3 images were rather very small in size (pixel height & width).

    I get the following Error-message in a pop-up:

    "The submitted message is too long to be processed. Please shorten it."

    Is this a bug or permission issue or anything else ?
    Last edited: Jun 18, 2013
  2. James

    James Well-Known Member

    Chances are the images didn't upload and instead you got base text.

    Try it again then switch to plaintext editor and paste the relevant code.
  3. erich37

    erich37 Well-Known Member

    the images were showing fine in the Editor.
    Once I clicked onto the "Post Reply"-button, I got the Error-message.
  4. James

    James Well-Known Member

    Again, you need to do it and switch to the plain text editor to find out the source of the problem.
  5. EQnoble

    EQnoble Well-Known Member

    What he is saying erich is that what you see displayed in a post is not what is in the editor really, when you switch to plain text you see what is (or isn't) getting parsed to build the final output of the post.

    Switching to the plain text editor will allow you to see what exactly is being submitted as a post.
    James likes this.
  6. Mike

    Mike XenForo Developer Staff Member

    The images are likely embedded as a data URI (meaning, their entire contents are in the URI). I'm not sure if there's anything we can do about drag and drop short of disabling it completely. (This behavior is specific to Firefox AFAIK.)

    The total post length is limited to prevent a potential DoS attack..
    Adam Howard likes this.
  7. erich37

    erich37 Well-Known Member

    whatever :D

    can you guys just try it yourself and confirm if I am right or wrong ?

  8. erich37

    erich37 Well-Known Member


    Ninja'd by Mike ;)
  9. erich37

    erich37 Well-Known Member

    not sure if "post length" has anything to do with the "size" of the images ? Probably not... I guess that'S what "URI" means ?
    The 3 images I "Drag & Dropped" were really 3 timy images. Not big (pixel size) at all.

    Maybe there is some chance to limit the amount of images you can "Drag & Drop" into a single post to say, e.g.: 3 images or 5 images ?

    Just my naive ideas.... I have no clue about the technical details :)
  10. EQnoble

    EQnoble Well-Known Member

    here is an example....

    look at the src= ....that represents the 16px by 16 px image, that is similar to what you copied more than likely. That string gets decoded and you have an image.
    erich37 likes this.
  11. erich37

    erich37 Well-Known Member

    How does this "Drag & Drop"-feature in Redactor-Editor compare to a "Browser Bookmarklet" ?
    I guess a "Browser Bookmarklet" just uses the "image URL" itself, not using this long image-code ?

    I guess this issue could be solved by using the "image URL" instead of using this long image-code ?

    Is it possible to build a "Browser Bookmarklet" into the Editor ?


    Last edited: Jun 18, 2013
  12. James

    James Well-Known Member

    XenForo tries to use the image URL, but in Firefox it isn't supported apparently (see Mike's post above).

    Hence, it's a browser issue as it works fine in other browsers.
  13. Adam Howard

    Adam Howard Well-Known Member

    Works just fine for me and I'm using Firefox.

    <massive image removed>
    Last edited by a moderator: Jun 19, 2013
  14. erich37

    erich37 Well-Known Member

    yeah, if I understand correctly it depends on which images you are using ....... aka the length of the "code" of each image which is put into the Editor....
  15. lostincable

    lostincable Active Member

    Hang one did @Mike just hint at removing drag and drop uploading?
  16. erich37

    erich37 Well-Known Member

    I do not see any hint from Mike regarding this.

    Drag & Drop is the single best feature of this Editor.

Share This Page