[python-upload-file-s3-multipart] impossible to make it work

Open
#110 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
cloud

Research direction

Start by comparing the python-upload-file-s3-multipart example with the reported hand-written function and its handler configuration. Inspect how the multipart body reaches the StreamingFormDataParser and verify the binary data remains intact when saved locally or uploaded to S3; done means the resulting document is valid.

Written by the indexing model from the issue text.

Description

Hello, i have try to implement the code from this example.
I don't have the lib serverless, i have made a function by hand and call my handler on the configuration of the function.
When my function receive the mulitpart/body, i have no error while using the StreamingFormDataParser but every time when i save to a local file or upload it to a S3 i always have an invalid document.

I have taken the time to inspect the content of the body, and the binary data of my file is passed as str so encoded to UTF8 to my function but the binary contain invalid ASCII char so i loose some part of the data resulting in my corrupted file.

Am i doing something wrong ?
Thanks for you help !

Dominant language
Go
Stars
64
Forks
14
Avg merge
6d 23h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scaleway/serverless-examples

All issues in scaleway/serverless-examples

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.