Skip to content

Version 3.2.0

Compare
Choose a tag to compare
@jimlambie jimlambie released this 08 Jun 03:39
· 674 commits to develop since this release

Added

Allow DELETE requests to a media collection

Send a DELETE request to a media collection endpoint, specifying a document's _id property in the URL.

If successful, a 200 response is returned (or a 204 if feedback: false is set in config):

DELETE /media/5b10e5b76b600c760dc1cb93

{
  "status": "success",
  "message": "Document deleted successfully",
  "deleted": 1,
  "totalCount": 2
}

Digital Ocean Spaces support

This version extends the S3 storage handler to support Digital Ocean Spaces (an S3-compatible API). Simply add a Digital Ocean access key and secret along with an endpoint to the media.s3 configuration block.

"media": {
  "enabled": true,
  "storage": "s3",
  "basePath": "api-uploads",
  "pathFormat": "date",
  "s3": {
    "accessKey": "your-digital-ocean-access-key",
    "secretKey": "your-digital-ocean-secret-key",
    "bucketName": "your-digital-ocean-space",
    "region": "nyc3",
    "endpoint": "nyc3.digitaloceanspaces.com"
  }
}