This module is a fork of AmazonS3 CORS Upload, re-written to work with the S3 File System module, rather than AmazonS3.

Drupal 7

This module requires S3 File System v2.x.

You must install the jQuery Update module and set it to use jQuery v1.5 or later. Otherwise, the CORS uploads will fail.

To configure your S3 bucket so that it will accept CORS uploads, go to the admin/config/media/s3fs/cors page on your admin site, fill in the "CORS Origin" field with your site's domain name, and submit it.

Drupal 8

This module requires S3 File System 8.x-3.x and Token 8.x-1.x. These dependencies are installed automatically if composer is used to manage this module.

This module requires 3.x of the aws/aws-sdk-php library.

Known Issues

Use of "path style" endpoints for AWS S3 buckets is deprecated and will be removed at some point. All access should be converted to use "virtual-hosted-style" endpoints. Refer to https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/ for more information.

Unfortunately, CORS uploads are not supported in Internet Explorer versions before IE 10. This means that any user who has an older version of IE will be unable to upload files through the CORS Upload widget. This limitation is due to the double-whammy of IE 9 and below's non-existent support for direct AJAX file uploads, combined with its overly restrictive file input security features.

(Drupal-7) If your Drupal site is installed in a subdirectory of your server, the URLs used by the Javascript for its AJAX endpoints will be wrong. If you'd like to contribute to a fix for this problem, please see this ticket on the issue queue.

Supporting organizations: 
Porting of Module to Drupal-8
Drupal 10 maintenance and development

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Media
  • chart icon968 sites report using this module
  • Created by coredumperror on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases