ORA: File Upload issue with ap-south-1 S3 Bucket

After debugging the edx/ora2 code I figured out what was happening.

The backend (python) doesn’t log any message with the error that was happening because the upload request is done by the frontend (javascript).

The upload URL is getting here and the upload is done here. With this, I inspect using the browser and could see a CORS problem.

My CORS config:

[
    {
        "AllowedHeaders": [
            "Content-disposition",
            "Content-type",
            "X-CSRFToken"
        ],
        "AllowedMethods": [
            "GET",
            "PUT"
        ],
        "AllowedOrigins": [
            "http://my-test-domain.com"
        ],
        "ExposeHeaders": [],
        "MaxAgeSeconds": 3000
    }
]

I’m using this tutor plugin: tutor-contrib-s3 is a easy way to configure a S3 Bucket, because all the documentation that I found is old and doesn’t work.

1 Like