php - Issues upload files on Ubuntu using PHP
问题描述
I am having an issue uploading files using PHP. Based on my research the user of the apache service needs to have permissions to the folder that files need to be uploaded to. I have done that as shown below
drwxrwxrwx 2 admin www-data 4096 Jun 13 01:59 temp
However when I try to upload the file the process times out and what is left in the directory is this
-rw------- 1 www-data www-data 79 Jun 13 01:54 POST0yS17Q
the POST0yS17Q is just an encrypted file id.
Can anyone help as to why the files are not uploading? Please note the same code works on a Windows server fine. So I have doubts that the code itself is an issue.
解决方案
file_uploads = On
在你的 php.ini 文件中设置
推荐阅读
- python-3.x - 通过 google api 客户端从 Google Tag Manager 获取变量信息(要设置的字段)
- java - 如何在 Java 中加载、访问和使用 C++ DLL 函数?
- c# - 将 IConfiguration 转换为 ConfigurationManager
- reactjs - 以制表符作为分隔符的导出 CSV 按钮
- azure-table-storage - 将数据从表存储返回到 PowerApps
- c# - 如何检测从 VertexHelper 构建的网格上的点击事件?
- r - 从多列数据框中检索最大值
- java - 有没有办法从 jar 文件中提取 scala.html 源代码?
- wpf - 如何使 2 列按比例调整大小超过某个宽度,但当表单低于该宽度时只有一个调整大小?
- javascript - 试图在旋转的图像上放置一个点