Unable to upload images
-
Environment: Mac 10.9+MAMP 2.2+WordPress 3.8+Buddypress 1.9+Buddypress Activity Plus 1.4
One week ago, Buddypress Activity Plus plugin works fine. But from today, any images can’t be uploaded. Error message shows below:Could not save uploaded file.The upload was cancelled, or server error encountered
I think it should be directory permission issue, but 755 or 777 don’t work neither.
I think it should be HTTP Server issue, but after change to XAMPP, it still doesn’t work.
I trace the code, I believe the error happens in the file file_uploader.php and function save.$input = fopen("php://input", "r"); $temp = tmpfile(); $realSize = stream_copy_to_stream($input, $temp); fclose($input); if ($realSize != $this->getSize()){ return false; }
I think there are 2 possible reasons:
1. tmpfile function can’t return a permissible directory.
2. Something wrong to make stream_copy_to_stream function doesn’t work.
These possible reasons make realSize != $this->getSize() happen.
Anyone can help me?
Thanks a lot.https://www.ads-software.com/plugins/buddypress-activity-plus/
- The topic ‘Unable to upload images’ is closed to new replies.