Results 1 to 2 of 2

Thread: File upload

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User R56's Avatar
    Join Date
    Mar 2011
    Posts
    32
    Vote Rating
    0
      0  

    Default File upload

    Hi,

    Long story short: callback of file upload request doesn't work when the upload response is http request code 204: No Content. Request is being done and everything goes great until:
    Ext.fly(frame).on('load', Ext.Function.bind(this.onUploadComplete, this, [frame, options]), null, {single: true});
    in upload method of Ext.data.Connection.
    The onUploadComplete is never fired because... surprise, surprise - the load event is never fired because its never loaded because it's standard way of dealing with No Content responses.
    I don't know if there even is workaround for this workaround or not. html5 ftw...

    Best regards,
    R

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,382
    Vote Rating
    1536
      0  

    Default

    Why not return a 200?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •