Problems Uploading Large Image Files
Up front I want to say that my both POST and Upload File Sizes are set to 32M in my PHP.ini file.
That being said, I can upload images roughly 2mb or less with no problem. The temporary file is created and then renamed to the original file name on the server, and everything is great.
Once I try to upload anything larger, it succeeds in uploading it, but it creates a temp file like "5d379b1cdb540ae2f4707f6396add8c7_tmp.JPG" and instead of renaming the file to it's original filename, it just removes the _tmp suffix and that results in the image being named "5d379b1cdb540ae2f4707f6396add8c7.JPG". The image then doesn't show up on the site because the filename that's added to the database is the original filename and therefore doesn't match the name on the server.
This ONLY happens with the large files. And I'm actually trying to resize them to 300px wide with the uploader. Here's my sample code for the uploader:
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../files/staff/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "300",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
WA_DFP_UploadFiles("WA_UploadResult1", "photo_staff", "2", "[NewFileName]_[Increment]", "JPG:100", $WA_UploadResult1_Params);
Thanks in advance!