[eluser]Computerzworld[/eluser]
I am using jquery uploader from this
website. If I run it separately then its working fine. But if I integrate it in CI then it doesn't work. Is there any modifications required in order to make it run?
Here is my view file.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jqUploader demo</title>
<link rel="stylesheet" type="text/css" media="screen" href="style.css"/>
[removed][removed]
[removed][removed]
[removed][removed]
[removed]
$(document).ready(function(){
$('#example1').jqUploader({background:'FFFFDF',barColor:'FFDD00',allowedExt:'*.avi; *.jpg; *.jpeg; *.png;',allowedExtDescr: 'what you want',validFileMessage: 'Thanks, now hit Upload!',endMessage: 'and don\'t you come back ;)',hideSubmit: false});
$("#example2").jqUploader({
afterScript: "redirected.php",
background: "FFFFDF",
barColor: "64A9F6",
allowedExt: "*.avi; *.jpg; *.jpeg; *.png",
allowedExtDescr: "Images and movies (*.avi; *.jpg; *.jpeg; *.png)"
});
$("#example3").jqUploader({background: "FFFFDF",barColor: "FF00FF"});
});
[removed]
</head>
<body>
<form enctype="multipart/form-data" action="flash_upload.php" method="POST" class="a_form">
<fieldset>
<legend>Your picture</legend>
<ol>
<li id="example1">
<label for="example1_field">Choose a file to upload: </label>
<input name="MAX_FILE_SIZE" value="1048576" type="hidden" />
<input name="myFile" id="example1_field" type="file" />
</li>
</ol>
</fieldset>
<input type="submit" name="submit" value="Send" />
</form>
<form enctype="multipart/form-data" action="flash_upload.php" method="POST" class="a_form">
<fieldset>
<legend>Upload your file</legend>
<ol>
<li id="example2">
<label for="example2_field">Choose a file to upload:</label>
<input name="myFile2" id="example2_field" type="file" />
</li>
</ol>
</fieldset>
<input type="submit" name="submit" value="Upload File" />
</form>
<form enctype="multipart/form-data" action="flash_upload.php" method="POST" class="a_form">
<fieldset>
<legend>Upload your file</legend>
<ol>
<li id="example3">
<label for="example3_field">Choose a file to upload:</label>
<input name="myFile3" id="example3_field" type="file" />
</li>
</ol>
</fieldset>
<input type="submit" name="submit" value="Upload File" />
</form>
</div>
</body>
</html>
<?php
//define("_BBC_PAGE_NAME", "jqUploader Index");
define("_BBCLONE_DIR", $localpath ."stats/");
define("COUNTER", _BBCLONE_DIR . "mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>
Thanks.