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

**URL:** <https://discuss.openedx.org/t/ora-file-upload-issue-with-ap-south-1-s3-bucket/2750>\
**Category:** Site Operations Help\
**Tags:** how-to\
**Created:** [July 16, 2020, 5:36am UTC](https://discuss.openedx.org/t/ora-file-upload-issue-with-ap-south-1-s3-bucket/2750 "2020-07-16T05:36:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![erickhgm](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/erickhgm/32/3538_2.png) [@erickhgm](https://discuss.openedx.org/u/erickhgm)\
**Post date:** [April 20, 2022, 5:57pm UTC](https://discuss.openedx.org/t/ora-file-upload-issue-with-ap-south-1-s3-bucket/2750/8 "2022-04-20T17:57:31Z")

</div>

After debugging the **[edx/ora2](https://github.com/openedx/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](https://github.com/openedx/edx-ora2/blob/5946fa2adfddcd5154472c48b1a1ddabde010da8/openassessment/xblock/submission_mixin.py#L498) and the upload is done [here](https://github.com/openedx/edx-ora2/blob/5946fa2adfddcd5154472c48b1a1ddabde010da8/openassessment/xblock/static/js/src/oa_server.js#L528). With this, I inspect using the browser and could see a CORS problem.

My CORS config:

```auto
[
    {
        "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](https://github.com/hastexo/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.

---

_[View the full topic](https://discuss.openedx.org/t/ora-file-upload-issue-with-ap-south-1-s3-bucket/2750)._
