Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.2
-
Fix Version/s: 5.0.3
-
Component/s: Staff Interface
-
Labels:None
Description
PostalMethod's API returns the following when delivering an invoice:
File Type Not Supported! Please send a file with extension .pdf, .doc,...
It seems like the file does not have a .pdf extension, this occurs in components/delivery/postal_methods/postal_methods.php
—
UPDATE
To fix, edit components/delivery/postal_methods/postal_methods.php and change line 231 from:
$new_filename = str_replace('.tmp', '.pdf', $filename);
To
$filename_parts = explode('.', $filename); $new_filename = $filename_parts[0] . '.pdf';