[CLOSED] Help with file upload

  1. #1

    [CLOSED] Help with file upload

    Hello,

    sorry for my last topic with mixed question.

    When I choose file for upload and fill other fields with text, after click on "Save" button I get following message:

    BADRESPONSE: Syntax error
    I attached test sample.

    Can you please, see what I make wrong?

    Best regards,
    Sasa
    Attached Files
    Last edited by geoffrey.mcgill; Sep 09, 2010 at 5:02 PM.
  2. #2
    Hi,

    You have server side exception
    In my case
    - ElearningID has no value but you try to convert it to int
    - i test under Meduim trust level therefore FileInfo constructor raises security exception

    You can easly see the error if remove your Failure handler from the Save direct event or replace it by the following handler

    Failure="Ext.Msg.alert('', response.responseText);"
  3. #3
    Quote Originally Posted by vladimir View Post
    Hi,

    You have server side exception
    In my case
    - ElearningID has no value but you try to convert it to int
    - i test under Meduim trust level therefore FileInfo constructor raises security exception

    You can easly see the error if remove your Failure handler from the Save direct event or replace it by the following handler

    Failure="Ext.Msg.alert('', response.responseText);"
    I have commented all in "SaveData", change Security to Low level or Trusted sites, but on click on Save button I still get following error:

    "
     
    Object reference not set to an instance of an object. 
    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.NullReferenceException: Object reference not set to an instance of an object.
     
    Source Error: 
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace: 
     
    [NullReferenceException: Object reference not set to an instance of an object.] Ext.Net.ComboBox.LoadPostData(String postDataKey, NameValueCollection postCollection) +261 Ext.Net.Field.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
    "

    I don't know why.
    Please, help me while I have deadline for my project.

    Best regards,
    Sasa
  4. #4
    Hi,

    I don't have such exception. Are you sure that you use latest code from SVN?
  5. #5
    Quote Originally Posted by vladimir View Post
    Hi,

    I don't have such exception. Are you sure that you use latest code from SVN?
    I updated latest code and all work fine.

    One more question about this and you can mark this topic as solved:
    1) How can reset FileUploadField on client side?

    Thanx and best regards,
    Sasa
  6. #6
    Hi,

    Use 'reset' client side method
    FileUploadField1.reset();

Similar Threads

  1. [CLOSED] multiple file upload and file size at client side
    By mirwais in forum 1.x Legacy Premium Help
    Replies: 24
    Last Post: Dec 15, 2014, 5:44 AM
  2. Replies: 1
    Last Post: Jun 23, 2011, 9:37 AM
  3. [CLOSED] file upload - file name is empty
    By stoque in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 11, 2011, 8:06 PM
  4. [CLOSED] [1.0] Help with File Upload
    By pdcase in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 13, 2010, 4:16 PM
  5. [CLOSED] Upload File
    By Casbah in forum 1.x Help
    Replies: 5
    Last Post: Nov 18, 2008, 12:30 PM

Posting Permissions