Giter Club home page Giter Club logo

Comments (7)

stavro avatar stavro commented on July 25, 2024 2

@joshsmith

Here's an open branch: stavro/arc#125
Here's some documentation: https://github.com/stavro/arc/wiki/Direct-to-S3-Uploads

Feel free to start playing with it, though I have a lot more to document. Especially surrounding content disposition.

from arc_ecto.

stavro avatar stavro commented on July 25, 2024 1

@joshsmith I have direct-to-s3 uploads working locally. I'll push it to Arc soon.

from arc_ecto.

stavro avatar stavro commented on July 25, 2024 1

@SuperDisk I highly recommend sticking to multipart file uploads rather than JSON. This is trivial with Angular and most other frontend clients. Uploading files via JSON is using the wrong tool for the job IMO.

from arc_ecto.

joshsmith avatar joshsmith commented on July 25, 2024

@SuperDisk I handle this in https://github.com/code-corps/code-corps-api by uploading files as base 64 strings.

I'm not super satisfied with this since I'm on Heroku and large files result in time outs. I'd prefer if I could upload to S3 directly and have arc_ecto (somehow!?) be used for reference.

from arc_ecto.

joshsmith avatar joshsmith commented on July 25, 2024

@stavro that's amazing and will be wonderful to see. Happy to help how I can since it's a major pain point here.

from arc_ecto.

joshsmith avatar joshsmith commented on July 25, 2024

I will also say that even though our implementation works, I really dislike it. It feels ham-fisted, as @stavro said – wrong tool for the job.

from arc_ecto.

joshsmith avatar joshsmith commented on July 25, 2024

@stavro thanks for this! Are you in the Elixir community Slack by chance? I'd tried looking for you there previously but no joy.

from arc_ecto.

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.