I have just set up a new Centos 7 server and uploaded my SilverStripe project via a Capistrano deployment. All is working well except for the file upload where I get a 'Filesize zero bytes' when uploading images.
The assets folder is symlinked to a shared folder outside of the website root.
website - current - - (website root) - shared - - assets - - - (uploads) - - vendor - - - (composer managed deps)
The file I am uploading is 16kb.
Permissions on all files and directories are set to deployer:apache 755 and permissions on the assets folder has been set to 775 (set it to 777 still with no luck).
There was another post I read that mention php config could be an issue. Here are some of the relevant php settings:
- max_execution_time: 30
- max_file_uploads: 20
- max_input_time: 60
- post_max_size: 8M
- upload_max_filesize: 2M
- upload_tmp_dir: /tmp
Not sure if there are any others that may be on interest, let me know and I will post them.