[1.6] UploadFileField lead to serialization error

  1. #1

    [1.6] UploadFileField lead to serialization error

    Attached Thumbnails Click image for larger version. 

Name:	QQ截图20130104135450.png 
Views:	58 
Size:	27.8 KB 
ID:	5356  
    Last edited by Daniil; Jan 04, 2013 at 11:53 AM. Reason: Corrected the title
  2. #2
    When you use FileUploadField then submit via ajax is impossible because file cannot be uploaded via ajax
    Therefore hidden iframe with html form is used to submit fields. Response from the server is rendered inside iframe and extracted. In this case, html content in response can be transformed by browser (when response is rendered inside iframe)

    If you don't need a file for particular request then I suggest to use Type=Load for direct event to avoid form submiting and pass all required info as extra parameters

    If file is required then please do not use html content in the response
  3. #3
    Quote Originally Posted by Vladimir View Post
    When you use FileUploadField then submit via ajax is impossible because file cannot be uploaded via ajax
    Therefore hidden iframe with html form is used to submit fields. Response from the server is rendered inside iframe and extracted. In this case, html content in response can be transformed by browser (when response is rendered inside iframe)

    If you don't need a file for particular request then I suggest to use Type=Load for direct event to avoid form submiting and pass all required info as extra parameters

    If file is required then please do not use html content in the response
    Thanks for your quick reply, I have tried Type=Load, it's work fine for me.

    You can close this thread, thanks.

Similar Threads

  1. Replies: 5
    Last Post: Dec 13, 2012, 8:27 AM
  2. TableLayout 2 bugs in Ext.Net1.x
    By devil in forum 1.x Help
    Replies: 2
    Last Post: Dec 03, 2012, 3:30 AM
  3. Replies: 1
    Last Post: Jun 24, 2011, 7:19 PM
  4. a problem with ext.net1.0 examples
    By hefeilixin in forum 1.x Help
    Replies: 1
    Last Post: Aug 26, 2010, 9:00 AM
  5. ext.net1.0 how to use BoxComponent
    By hefeilixin in forum 1.x Help
    Replies: 3
    Last Post: Aug 23, 2010, 2:45 AM

Posting Permissions