Side navigation
#10879 closed bug (invalid)
Opened November 23, 2011 09:56PM UTC
Closed November 23, 2011 10:40PM UTC
Last modified March 14, 2012 11:19AM UTC
Jquery toggle method using "slide" effect from Jquery UI
Reported by: | xpdseth@abv.bg | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If the method is applied to hide/show a form field with input type="file". On submitting the form attached image is lost during the POST process.
For example This will NOT post the uploaded file to the server!
(Hide first then toggle show/hide)
$( ".container_upload" ).css('display', 'none');
$( "button.upload" ).click(function() {
$( ".container_upload" ).toggle( "slide", { direction: "up" }, 600 );
});
For example This will WORK and post the uploaded file to the server! (Hide first then show on click)
$( ".container_upload" ).css('display', 'none');
$( "button.upload" ).click(function() {
$( ".container_upload" ).css('display', '');
});
Attachments (0)
Change History (2)
Changed November 23, 2011 10:26PM UTC by comment:1
Changed November 23, 2011 10:40PM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
Unfortunately, we are unable to assist with issues related to support, jQuery UI, or third party plugins. Bug reports related to jQuery UI can be filed on the jQuery UI bug tracker. Please be sure to post a valid testcase that reproduces the issue on http://jsfiddle.net with your ticket.
After more test i can definitely say the problem lies inside JQuery UI!
$( ".container_upload" ).toggle( "slide", { direction: "up" }, 600 ); => is NOT sending the _FILE array
$( ".container_upload" ).toggle(); => WORKS! _FILE array is send.
I only remove the inside of the toggle function which turns it to simple Hide/Show and no problems ! If i use the fancy Jquery UI effect _FILE array is empty!