Services File Formatter

Component ID

2820790

Component name

Services File Formatter

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

249

Component created

Component changed

Component body

About

Provides a response formatter for files for the Services module.

The new file response formatter returns the value as-is, without any additional processing applied to it, which allows a custom webservice to return for example binary files (or any other unmodified/unformatted content).

Usage

After enabling the module, the new file response formatter by default will be used for requests with Accept HTTP header set to any of the basic MIME types:

  • application/*
  • audio/*
  • image/*
  • video/*

Other custom MIME types to be handled by the file response formatter could be added or removed in the module configuration at Administration » Structure » Services » File formatter settings (admin/structure/services/file_formatter).