首页 > 解决方案 > 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.

标签: phpubuntu

解决方案


file_uploads = On在你的 php.ini 文件中设置


推荐阅读