# Can't add a custom filename to a presigned put request

**URL:** <https://forum.pydio.com/t/cant-add-a-custom-filename-to-a-presigned-put-request/1914>\
**Category:** Pydio 8\
**Created:** [November 30, 2018, 7:32pm UTC](https://forum.pydio.com/t/cant-add-a-custom-filename-to-a-presigned-put-request/1914 "2018-11-30T19:32:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanPhilips](https://avatars.discourse-cdn.com/v4/letter/i/919ad9/32.png) [@IanPhilips](https://forum.pydio.com/u/IanPhilips)\
**Post date:** [November 30, 2018, 7:32pm UTC](https://forum.pydio.com/t/cant-add-a-custom-filename-to-a-presigned-put-request/1914/1 "2018-11-30T19:32:59Z")

</div>

Here is my SO question: [amazon s3 - How to override filename on s3 presigned PUT url using go and aws-sdk - Stack Overflow](https://stackoverflow.com/questions/53561744/how-to-override-filename-on-s3-presigned-put-url-using-go-and-aws-sdk)

I haven’t seen any issues on the aws-sdk-go repo so the problem may be with the pydio-cells side. If I try to `SetContentDisposition("attachment; filename=\""+fileName+"\"")` to my `PutObjectInput` for a presigned request, the `PUT` request always fails. If I leave that out, the request passes but the filename has url encoded strings in it, i.e. %20 for spaces. Has anyone had that problem with the s3 API or aws-go-sdk?

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [December 7, 2018, 8:27am UTC](https://forum.pydio.com/t/cant-add-a-custom-filename-to-a-presigned-put-request/1914/2 "2018-12-07T08:27:49Z")

</div>

Hi @IanPhilips  
Coming back on this, we had a similar issue with urlencoding (%20 instead of spaces) with the aws-sdk in Android, and we had to hack this sdk for fix it, as it was double-encoding the filename. Can you maybe try to use the [github.com/minio/minio-go](http://github.com/minio/minio-go) client lib instead of aws-sdk-go ? It’s more or less a drop-in replacement.  
Or if you stick to aws-sdk-go, maybe try to make real PutObject operations, without using Presigned?  
Charles

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)\
**Post date:** [May 16, 2023, 10:31am UTC](https://forum.pydio.com/t/cant-add-a-custom-filename-to-a-presigned-put-request/1914/3 "2023-05-16T10:31:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
