Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4166

PostalMethods returns error that the file type is not supported

    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

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              23/Feb/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 24 minutes
              24m

                Agile