It looks like you're new here. If you want to get involved, click one of these buttons!
<?php echo form_open_multipart($this->uri->uri_string); ?>
<p><label for=\"title\">Title: <br />
&lt;input type=\"text\" name=\"title\" id=\"title\" /&gt;
</label></p>
<p>Select the photos you would like to add to the gallery<br />
&lt;input type=\"file\" name=\"file_input\" id=\"file_input\" /&gt;
</p>
&lt;/form&gt;
$(document).ready(function() {
$('#file_input').fileUpload({
'uploader': '/svn/handinhand/assets/js/uploadify/uploader.swf',
'script': '/svn/handinhand/admin/gallery/upload',
'folder': '/svn/handinhand/assets/images/galleries',
'multi': true,
'auto': true,
'fileExt': '*.jpg;*.jpeg;*.png;*.gif',
'buttonText': 'Browse...',
'cancelImg': '/svn/handinhand/assets/js/uploadify/cancel.png'
});
});
function upload() {
if ( ! empty($_FILES)) {
$tempFile = $_FILES['file_input']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT'] . '/SVN/handinhand/assets/images/galleries';
$targetFile = str_replace('//','/',$targetPath) . $_FILES['file_input']['name'];
move_uploaded_file($tempFile,$targetFile&#41;;
}
echo '1';
}