Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1381

New term Core.ContentDisposition

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Vocabularies
    • Labels:
      None
    • Environment:

      Proposed

      Description

      Allow defining the values of the Content-Disposition header for binary and stream properties:

      "attachment": {
        "$Type": "Edm.Stream",
        "@Core.ContentDisposition": { 
          "Filename": { "$Path": "attachmentFilename" } 
        }
      },
      "attachmentFileName": {
        "@Core.Description": "This string property contains proposed download filename for `attachment`"
      }
      

      This means that

      GET /foo/1/attachment
      

      returns the header

      Content-Disposition: attachment; filename="<content of attachmentFilename property>"
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: