Unable to insert image from iOS app

Asked 2 years ago, Updated 2 years ago, 134 views

I am running WordPress 4.7.2 by creating CentOS7 in the Docker container in CentOS7.
The http server is Apache/2.4.6.PHP 5.4.16.

When I insert an image from iOS's WordPress app, the error screen looks like the one below.

Enter a description of the image here

When I insert an image from iOS's PressSync app, the error screen appears below.

Enter a description of the image here

Posts that do not involve image insertion can be done without any problems.

Even in php configuration
memory_limit=1000M
post_max_size=100M
upload_max_filesize=100M
max_input_time=60
and quite high.

An HTTP error occurred when I uploaded the iPhone photo directly to the media even from the browser.
Shrink and upload will succeed.

If you know how to solve this problem, please let me know.

== (Self-resolved) ==
The front of the Docker container used by wordpress is proxy_passing with nginx.

in that nginx configuration client_max_body_size 100M;
was configured.

ios wordpress

2022-09-30 21:22

1 Answers

I don't know if the questioner has nginx installed, so
I don't know if it's the same, but it's for your reference
https://wordpress.org/support/topic/upload-fails-for-photos-taken-with-iphone/

It was fixed after adding to nginx.conf.

client_max_body_size20M;

You should also check the memory_limit(/etc/php.ini) on the PHP side.


2022-09-30 21:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.