Bug Tracker

Modify

Ticket #3052 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

jquery.form.js does break on file upload

Reported by: fil Owned by: flesler
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: form Cc:
Blocking: Blocked by:

Description

I was trying file uploads with the current jquery.js and jquery.form.js, and file upload in form.js fails (FF3/Mac); I located the problem in function cb() where $.httpData is called with two arguments only. A quick patch is to add a third argument {} in the call on line 270, but I have no idea if it's the correct way to do it.

jquery.js:

  • $Rev: 5726 $

jquery.form.js

  • Revision: $Id: jquery.form.js 5718 2008-06-07 15:02:19Z malsup $

quick patch:

  • data = $.httpData(xhr, opts.dataType);

+ data = $.httpData(xhr, opts.dataType, {});

hth

(Maybe related to #2952)

Change History

comment:1 Changed 5 years ago by flesler

  • Keywords form added
  • Owner set to malsup

comment:2 Changed 5 years ago by fil

As Renato found out it is the changeset [5714] that breaks file uploads in jquery.form.js

comment:3 Changed 5 years ago by flesler

  • Owner changed from malsup to flesler
  • Status changed from new to assigned

comment:4 Changed 5 years ago by flesler

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed on [5732].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.