# uploadURL undefined using @uppy/aws-s3

**URL:** <https://community.transloadit.com/t/uploadurl-undefined-using-uppy-aws-s3/16718>\
**Category:** Uppy\
**Created:** [August 7, 2023, 4:00am UTC](https://community.transloadit.com/t/uploadurl-undefined-using-uppy-aws-s3/16718 "2023-08-07T04:00:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![T3nD4n](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@T3nD4n](https://community.transloadit.com/u/T3nD4n)\
**Post date:** [August 7, 2023, 4:00am UTC](https://community.transloadit.com/t/uploadurl-undefined-using-uppy-aws-s3/16718/1 "2023-08-07T04:00:51Z")

</div>

Hi everyone, I am uploading images directly from client side to S3 (@uppy/aws-s3) using pre-signed urls, the images are being uploaded, but “data.uploadURL” in the “upload-success” event is undefined.

```auto
        let flyerUploader = new Uppy({
                id: 'flyer',
                debug: true,
                autoProceed: true,
                restrictions: {
                    maxFileSize: 2*1024*1024,
                    maxNumberOfFiles: 1,
                    minNumberOfFiles: 1,
                    allowedFileTypes: ['image/*']
                }
            })
            .use(Dashboard, {
                target: '#flyer',
                inline: true,
                height: 350,
            })
            .use(AwsS3, {
                shouldUseMultipart: (file) => false,
                getUploadParameters (file) {
                    return fetch(Helpers.route('admin/storage/presigned_url'), {
                        method: 'post',
                        headers: {
                            accept: 'application/json',
                            'content-type': 'application/json',
                            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                        },
                        body: JSON.stringify({
                            filename: file.name,
                            contentType: file.type
                        })
                    }).then((response) => {
                        return response.json()
                    }).then((data) => {
                        return {
                            method: data.method,
                            url: data.url,
                            fields: data.fields,
                            headers: data.headers
                        }
                    })
                }
            });

        flyerUploader.on('upload-success', (file, data) => {
            console.log(data); //data.uploadURL undefined
        });

```

Here is an image of data variable  
 ![Captura de pantalla 2023-08-07 005744](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/32fff668bfa7949823fcc471567e1b22add431b7.jpeg)

What am i missing here?  
Thanks!

---

<div class="post-metadata">

**Author:** ![T3nD4n](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@T3nD4n](https://community.transloadit.com/u/T3nD4n)\
**Post date:** [August 7, 2023, 5:36pm UTC](https://community.transloadit.com/t/uploadurl-undefined-using-uppy-aws-s3/16718/2 "2023-08-07T17:36:02Z")

</div>

> [@T3nD4n](#):
>
> ```auto
> let flyerUploader = new Uppy({
> id: 'flyer',
> debug: true,
> autoProceed: true,
> restrictions: {
> maxFileSize: 2*1024*1024,
> maxNumberOfFiles: 1,
> minNumberOfFiles: 1,
> allowedFileTypes: ['image/*']
> }
> })
> .use(Dashboard, {
> target: '#flyer',
> inline: true,
> height: 350,
> })
> .use(AwsS3, {
> shouldUseMultipart: (file) => false,
> getUploadParameters (file) {
> return fetch(Helpers.route('admin/storage/presigned_url'), {
> method: 'post',
> headers: {
> accept: 'application/json',
> 'content-type': 'application/json',
> 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
> },
> body: JSON.stringify({
> filename: file.name,
> contentType: file.type
> })
> }).then((response) => {
> return response.json()
> }).then((data) => {
> return {
> method: data.method,
> url: data.url,
> fields: data.fields,
> headers: data.headers
> }
> })
> }
> });
> 
> flyerUploader.on('upload-success', (file, data) => {
> console.log(data); //data.uploadURL undefined
> });
> 
> ```

After some testing I think is a bug in current version  
@uppy/aws-s3: 3.2.1,  
@uppy/core: 3.3.1,  
@uppy/dashboard: 3.5.0

the same example works fine in older version like  
“@uppy/aws-s3”: “3.1.1”,

I will post this on github.
