[英]Uploadify broblem with over 10MB files
recently I downloaded the new uploadify plugin for multiple file uploads. 最近,我下载了新的uploadify插件以上传多个文件。 It was perfect until i tried to upload a movie about 700MB.
直到我尝试上传约700MB的电影,这才是完美的。 After some searching i found than i can't upload any file over 10MB.
经过一番搜索,我发现无法上传超过10MB的文件。
Here is my jquery script: 这是我的jQuery脚本:
<script type="text/javascript">
<?php $timestamp = time();?>
$(function() {
$('#file_upload').uploadify({
'formData' : {
'timestamp' : '<?php echo $timestamp;?>',
'token' : '<?php echo md5('unique_salt' . $timestamp);?>'
},
'auto' : false,
'progressData' : 'speed',
'buttonText' : 'Choose files...',
'swf' : 'uploadify.swf',
'uploader' : 'uploadify.php',
});
});
</script>
Please help !!! 请帮忙 !!!
Changing the limit on Uploadify 更改Uploadify的限制
Set the size limit! 设置大小限制!
'sizeLimit':1024*1024*1024*2 //2GB
Altogether now... 现在总共...
$(function() {
$('#file_upload').uploadify({
'formData' : {
'timestamp' : '<?php echo $timestamp;?>',
'token' : '<?php echo md5('unique_salt' . $timestamp);?>'
},
'auto' : false,
'progressData' : 'speed',
'buttonText' : 'Choose files...',
'sizeLimit': 1024*1024*1024*2,
'swf' : 'uploadify.swf',
'uploader' : 'uploadify.php',
});
});
You may likely increase the size limit because straight 700MB might not be enough for your image. 您可能会增加大小限制,因为直接700MB可能不足以容纳您的图像。 If it doesn't work, do 800MB
如果不起作用,请执行800MB
EDIT I revised the code to use 2G file size limit instead. 编辑我修改了代码,改为使用2G文件大小限制。
Changing it in PHP 在PHP中更改
Go to your php.ini file and set the following parameters: 转到您的php.ini文件并设置以下参数:
upload_max_filesize = 2047M
post_max_size = 2047M
PHP is likely your problem because 10MB is the default hard limit PHP可能是您的问题,因为默认的硬限制是10MB
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.