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';
Activity
Field | Original Value | New Value |
---|---|---|
Sprint | 5.0.3 Sprint 1 [ 130 ] |
Rank | Ranked higher |
Status | Open [ 1 ] | In Progress [ 3 ] |
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 |
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: {code:java} $new_filename = str_replace('.tmp', '.pdf', $filename); {code} To {code:java} $filename_parts = explode('.', $filename); $new_filename = $filename_parts[0] . '.pdf'; {code} |
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 24 minutes [ 1440 ] | |
Worklog Id | 14742 [ 14742 ] |
Status | In Review [ 5 ] | Closed [ 6 ] |