Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11710

file api: alter required fields

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.7
    • Fix Version/s: 4.3.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      the file api currently requires file_type_id in the params, but as far as I can see, that field is rarely used in the normal interface upload of files.

      I believe what should be required is the uri field, which is where we store the actual filename (filename as uploaded + unique hash)

      see this patch (first part):
      https://github.com/nysenate/Bluebird-CRM/commit/11910d3e3906d3fc16b7d4292fb52998da53a0a2

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: