我的视图文件中有以下内容:
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/uploadifive.css">
<script src="<?php echo base_url(); ?>assets/js/uploadify/jquery.uploadifive.min.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>assets/js/uploadify/jquery.min.js" type="text/javascript"> </script>
然后我有:
<div id="queue"></div>
<input id="file_upload" name="file_upload" type="file" multiple="true" class="uploadifive-button">
<a style="position: relative; top: 8px;" href="javascript:$('#file_upload').uploadifive('upload')">Upload Files</a>
<!-- Uploadify stuff-->
<script type="text/javascript">
<?php $timestamp = time(); ?>
$(document).ready(function() {
$('#file_upload').uploadifive({
'auto' : true,
'checkScript' : '<?php echo base_url(); ?>user/check_image',
'formData' : {
'timestamp' : '<?php echo $timestamp;?>',
'token' : '<?php echo md5('unique_salt' . $timestamp);?>'
},
'queueID' : 'queue',
'uploadScript' : '<?php echo base_url(); ?>user/uploadi',
'onUploadComplete' : function(file, data) { console.log(data); }
});
});
它在示例中,但按钮与示例不同,没有任何效果,没有错误,没有上传,没有任何内容,请帮忙。