08/27/2015 at 2:22 pm
#344690
Keymaster
@ Enrique
The failure is happening early in the process… but here’s an overview of the process.
- Selected image is uploaded to the server temp folder with a unguessable temp file name. This is a PHP “standard” for all uploads regardless of WordPress, Connections and so on.
- WordPress validates the file, such as permitted file type, file size and safe file name.
- After validation passes, the file is moved to the destination folder. Before the file is moved…
- If the destination folder does not exist then WordPress creates it setting its permissions to that of its parent folder.
- WordPress attempts to move the file using either
move_uploaded_file()orrename(), core PHP functions (not WordPress or Connections). This is where the failure is occurring. As previously stated, very likely a server permissions configurations issue. - As part of the file being moved, it is also renamed to its final name. In this case the
{entry-slug}(johnson-family.jpg). - After it is moved successfully, then Connections get involved and creates image size variations based on the image settings on the Connections : Settings admin page under the Image tab.
As you see, Connections is only involved on the periphery of the process. It “merely” provides the HTML form to upload an image, tells WordPress to allow only image file types and where to move and name the file after it is successfully validated.
