I want implement upload zip file using FORM API where I want to show the progress bar for uploading file so I have written code like:
$step2['browse']=array( '#type'=>'managed_file', '#id'=>'choose', '#progress_indicator' => 'bar', '#progress_message'=> 'File is Uploading', '#upload_validators' => array( 'file_validate_extensions' => array('zip rar')), '#upload_location' => 'public://', );
But when I am trying to upload zip file using this form, my upload file field disappears automatically and also upload button disappears with it.
I am not getting what is wrong with this field.
I have applied 2 patches but that doesn't helps.