CMS MADE SIMPLE FORGE

Products

 

[#12385] Bug when adding a new product with a custom field send image

avatar
Created By: Mich-adg (Mich)
Date Submitted: Tue Nov 17 14:42:43 -0500 2020

Assigned To: Robert Campbell (calguy1000)
Version: 2.28.7
CMSMS Version: 2.2.15
Severity: Major
Resolution: None
State: Open
Summary:
Bug when adding a new product with a custom field send image
Detailed Description:
Hi,
i have a custom field for sending one image.
If i create a new product, type the names, price... and select an image and
save, the file name is not saved correctly, it is renamed "customfield" (but the
file is sent online with his original name...!).
I must delete the file, re-edit the product and then resend the image and then
it works.
Thx.


History

Comments
avatar
Date: 2020-11-20 11:34
Posted By: TimdeBuurman (timdebuurman)

Hi,

Any updates on this, as i'm experience the same thing.
Updating Products to 2.28.7 did not fix it.

      
avatar
Date: 2021-09-29 10:57
Posted By: Chris Taylor (chrisbt)

actually a bug in CGExtensions > lib > class.cg_fileupload.php line 454

replace this:
        return $this->get_new_filename( $field_name );

with this:
        return $this->get_new_filename( $file['name'] );