duanbinren8906 2019-05-26 00:38
浏览 53

有没有办法增加我的zip文件的上传大小?

Zip files over 65mb won't upload to my database and file folder. The server allows 500MB and php allows 128MB

I have up the size of the file to determine how large the file can be before it stops working.

This is the form

Enter Your Account Email:

Upload File:
upload

And this is the code to add the files. It works but stops at a certain size.

 if (!in_array($extension, ['mp3', 'wma', 'wav', 'zip'])) {
    echo "Your file extension must be .mov, .wmv, .mp4 or .zip";
} elseif ($_FILES['myfile']['size'] > 100000000) { // file shouldn't be larger than 1Gigabyte
    echo "File too large!";

To upload zip files at least 125MB

  • 写回答

1条回答 默认 最新

  • dongsui4658 2019-05-26 00:49
    关注

    first create .htaccess file and copy paste it in .htaccess file in your root directory.

    When you make change on php configration through .htaccess you should put configrations in IfModule tag,.

    <IfModule mod_php5.c>
       php_value upload_max_filesize 100M
       php_value post_max_size 100M
    </IfModule> 
    
    评论

报告相同问题?

悬赏问题

  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错