Can not upload files/images

Last post 12-12-2012, 6:23 AM by BoyThach. 7 replies.
Sort Posts: Previous Next
  •  11-08-2012, 6:24 PM 75189

    Can not upload files/images

    Use Framework 4.5 and HTML 5....

    Whats the problem? 

  •  11-09-2012, 2:57 AM 75193 in reply to 75189

    Re: Can not upload files/images

  •  11-09-2012, 5:56 AM 75197 in reply to 75189

    Re: Can not upload files/images

    Yeah, you need to fix that for AJAX request .

     

    But we will improve the error message

     

    Regards,

    Terry 

  •  12-11-2012, 10:52 AM 75442 in reply to 75197

    Re: Can not upload files/images

    Hi Terry,

     

    I got the same problem as mentioned above. I already follewed the steps on the website given above but the problem still insist.

     

    When I click on e.g. Add Image I get an alert pop-up with the source code of my page. After I close the pop-up and click on Upload image I got the same error message as above.

     

    Any ideas I could try?

     

    Regards,

     

    Boy

    Filed under: ,
  •  12-11-2012, 5:32 PM 75443 in reply to 75442

    Re: Can not upload files/images

    Have you try <httpRuntime requestValidationMode="2.0" in web.config?
  •  12-12-2012, 3:35 AM 75446 in reply to 75443

    Re: Can not upload files/images

    Hi kjell.ek,

     

    I've tried your suggestion but it didn't solved my problem. Thanks anyway.

  •  12-12-2012, 4:14 AM 75447 in reply to 75446

    Re: Can not upload files/images

    And <%@ Page Language="VB" ValidateRequest="false"

    That was my problem.....

  •  12-12-2012, 6:23 AM 75448 in reply to 75447

    Re: Can not upload files/images

    It's a mvc 3 project so I can't do that.

     

    After several try-and-error test we found out that the editor does a POST after we click the button. The method in the controller which invoke the editor also has a POST version (["HttpPost"]). Thats where it goes wrong.

    I need to find a way to solve this problem.

View as RSS news feed in XML