Code Monkey home page Code Monkey logo

Comments (9)

Miserlou avatar Miserlou commented on May 16, 2024

File uploads appear to be ballooning up in size across the APIGW:

176372: local app
314044: Zappa app

Investigating..

from zappa.

Miserlou avatar Miserlou commented on May 16, 2024

I don't know. I suspect it has something to do with byte encodings, but it looks like the file is too big by the time it even makes it through the APIGW, before we even touch it.

from zappa.

Miserlou avatar Miserlou commented on May 16, 2024

Bugger. This is an API Gateway problem - B64 encoding image uploads is still necessary for the time being: https://forums.aws.amazon.com/thread.jspa?threadID=231371&tstart=0

from zappa.

anush0247 avatar anush0247 commented on May 16, 2024

@Miserlou we have implemented django admin file widget to upload files in django zappa admin panels. I hope this can help. check out: https://github.com/anush0247/zappa-file-widget

from zappa.

Miserlou avatar Miserlou commented on May 16, 2024

Woah, that's awesome!

from zappa.

Miserlou avatar Miserlou commented on May 16, 2024

Related: #481

from zappa.

Miserlou avatar Miserlou commented on May 16, 2024

Binary downloads work, could be interesting to revisit binary uploads now.

from zappa.

Miserlou avatar Miserlou commented on May 16, 2024

Binary uploads work now.

from zappa.

JamesQAQ avatar JamesQAQ commented on May 16, 2024

I have deployed my django project to s3 bucket about 3 weeks ago, and find out there was an issue about binary file uploads.
After seeing this issue closed, I updated zappa and tried to update but get the warning below:

Warning! Couldn't get function treasure-django-dev in us-east-1 - have you deployed yet?

My command:
zappa update dev

My zappa_settings.json:

{
    "dev": {
        "django_settings": "treasure.settings",
        "s3_bucket": "free-gifts-zappa"
    }
}

from zappa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.