Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2195

InstantTranslate filepretranslation API has a wrong parameter name

    XMLWordPrintable

    Details

    • Urgency:
      Medium
    • Important release notes:
      Hide
      Supertext informieren, dass sie den Parameter in ihrer API entsprechend anpassen können - bei Weiterführender Nutzung von 0 bekommen Sie deprecated Warnungen.
      https://jira.translate5.net/browse/TS-506
      Show
      Supertext informieren, dass sie den Parameter in ihrer API entsprechend anpassen können - bei Weiterführender Nutzung von 0 bekommen Sie deprecated Warnungen. → https://jira.translate5.net/browse/TS-506

      Description

      problem

      When using the InstantTranslate5 filepretranslation via the API endpoint
      /editor/instanttranslateapi/filepretranslation
      the POST is sent as multipart/form-data. According to the Documentation the name of parameter should be "file" but indeed it is currently "0". 

      solution

      This must be changed:

      1. In Documentation - there is currently the problem explained
      2. In the API Endpoint (but keep the index "0" working for legacy API users and log a warning)
      3. Change the field in the IntantTranslate GUI code

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aleksandar Aleksandar Mitrev
              Reporter:
              tlauria Thomas Lauria
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: