Hi
I have built an cakephp site that lets users upload files, all works fine but I would like to show a image saying "file uploading" or something while it is uploading. Now I know that I should use the $ajax->form helpers but I can not seem to get this to work. Can some one point me in the right direction please
form(array('type' => 'post', 'options' => array( 'model'=>'Upload', 'update'=>'post2', 'action' => 'add', 'confirm' => 'Are you sure?', 'indicator' => 'loading', 'before' => '$("#post2").html("Wait a moment")'
)
)); ?>
<fieldset>
<legend><?php __('Add Upload');?></legend>
<?php echo $form->input('title'); ?>
<div id="formUpdate">
<?php echo $form->input('Uploaded.uploaded_file', array('type' => 'file', 'label' => 'Upload file')); ?>
</fieldset>
end('Submit');?>
<div id="post2"></div>