Git Product home page Git Product logo

Comments (10)

keesey avatar keesey commented on June 4, 2024 1

I'm sorry this was closed, as I find myself needing to handle multipart/form-data requests.

from claudia-api-builder.

gojko avatar gojko commented on June 4, 2024

Hi,

I'm not entirely sure what you are proposing - can you explain it a bit more? An API can upload to an S3 Bucket using the normal S3 APIs already. Check out https://github.com/claudiajs/example-projects/tree/master/s3-file-processing - the convert.js module is using the S3 API to upload a file back to the bucket.

from claudia-api-builder.

rafaismyname avatar rafaismyname commented on June 4, 2024

As we are using a single endpoint for our api (API Gateway with custom domain) we have a route where users can POST stories.

The POST params structures are: title, text, image.

So what i'm proposing it's a way to handle a file to be passed as a param, and then uploaded to a s3 bucket.

from claudia-api-builder.

gojko avatar gojko commented on June 4, 2024

ah, ok. I understand. We do something very similar by letting people upload to S3 with a predefined URL, so we can limit the size and content types, then the form post just contains the S3 key.

I guess to handle your case, we just need an additional template for form/multipart. shouldn't be too difficult to do.

from claudia-api-builder.

rafaismyname avatar rafaismyname commented on June 4, 2024

That's it! 👍
Thanks for this awesome project.

from claudia-api-builder.

gojko avatar gojko commented on June 4, 2024

can you share the input template you're using at the moment, so I can massage it in with the rest?

from claudia-api-builder.

gojko avatar gojko commented on June 4, 2024

i'm closing this due to lack of response; if anyone wants to pick this up in the future, please reopen the issue.

from claudia-api-builder.

alxpereira avatar alxpereira commented on June 4, 2024

Hi @gojko,
I'm really interested to build a claudiajs driver on our framework
https://www.blockbase.run/en/

However, i'm missing this feature (file upload using the rest API methods POST/PUT), that would be useful...

Can you up ?

from claudia-api-builder.

gojko avatar gojko commented on June 4, 2024

@alxpereira please use the project chat channel for discussions, we use github issues for bugs only

from claudia-api-builder.

dmackinn avatar dmackinn commented on June 4, 2024

@keesey did you ever sort it out? I've been trying to figure out multipart/form-data with claudia as well

from claudia-api-builder.

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.