php如何解决无法上传大于8M的文件问题
时间:2024-06-05 09:39:24
开发一个文件上传共享网站,曾想使用下面的代码实现文件上传的功能:
<form enctype="multipart/form-data" action="add_file.php" method="post">
<fieldset><legend>Fill out the form to upload a file:</legend>
<?php // Create the inputs.
for ($i = 0; $i < $counter; $i++) {
echo '<b>File:</b> <input type="file" name="upload' . $i . '" />
<b>Description:</b> <textarea name="description' . $i . '" cols="40" rows="5"></textarea>
';
}
?>
</fieldset>
<input type="hidden" name="submitted" value="TRUE" />
[align=center]<input type="submit" name="submit" value="Submit" />[/align]
</form>
在实际执行过程中发现上传稍微大一些的文件时,显示File couldn't be moved。
数据库里显示文件名称,不显示大小。
而上传大于8M的文件时,页面根本没有反应。
标签:php,上传大文件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Pandas中的 transform()结合 groupby()用法示例详解
2023-01-26 10:00:09
![](https://img.aspxhome.com/file/2023/5/85135_0s.png)
浅谈SQL Server 2016里TempDb的进步
2024-01-13 20:23:41
![](https://img.aspxhome.com/file/2023/6/113596_0s.png)
Oracle19c 创建表空间遇到的坑
2024-01-15 14:18:24
浅析SQL Server授予了CREATE TABLE权限但是无法创建表
2024-01-28 18:26:23
![](https://img.aspxhome.com/file/2023/4/104114_0s.png)
django配置DJANGO_SETTINGS_MODULE的实现
2023-06-18 20:14:26
APIStar:一个专为Python3设计的API框架
2022-05-29 03:52:02
![](https://img.aspxhome.com/file/2023/1/114661_0s.png)
pycharm中如何使用快捷键按出代码提示框
2023-03-11 22:18:52
![](https://img.aspxhome.com/file/2023/8/84928_0s.jpg)
不错的一篇关于javascript-prototype继承
2024-04-23 09:15:42
Access2K中的查询分析器
2008-11-20 16:40:00
Python3下错误AttributeError: ‘dict’ object has no attribute’iteritems‘的分析与解决
2023-04-21 05:52:45
详解Python logging调用Logger.info方法的处理过程
2023-03-14 19:45:37
![](https://img.aspxhome.com/file/2023/5/120985_0s.png)
PHP实现简易计算器功能
2024-05-11 09:25:27
![](https://img.aspxhome.com/file/2023/1/126211_0s.gif)
pytorch中的torch.nn.Conv2d()函数图文详解
2021-02-01 17:32:13
![](https://img.aspxhome.com/file/2023/6/97016_0s.png)
怎样安全地关闭MySQL实例
2024-01-20 02:39:20
将python代码和注释分离的方法
2022-04-06 12:04:50
dedecms 批量提取第一张图片最为缩略图的代码(文章+软件)
2024-04-28 09:45:40
Python数据分析之获取双色球历史信息的方法示例
2022-10-05 21:16:34
两行代码实现的QQ窗口抖动效果
2008-09-06 12:34:00
浅析mysql 定时备份任务
2024-01-17 07:21:01
typescript常见高级技巧总结
2024-05-08 10:10:10