Comments (10)
I'm sorry this was closed, as I find myself needing to handle multipart/form-data
requests.
from claudia-api-builder.
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.
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.
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.
That's it! 👍
Thanks for this awesome project.
from claudia-api-builder.
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.
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.
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.
@alxpereira please use the project chat channel for discussions, we use github issues for bugs only
from claudia-api-builder.
@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)
- One API Gateway for different lambda. HOT 1
- JSON parse throws error HOT 4
- Premature Exit while using Async.js with no results HOT 2
- Log path to CloudWatch HOT 5
- Add 'Access-Control-Allow-Origin' header to Authorizer's error responses HOT 2
- Question: Does it build to new AWS node 8.10.0 runtime? HOT 1
- Handling dynamic path variables when running locally HOT 1
- [Improvement] Use Method-Aware Status Codes HOT 1
- Type defintions for IDEs HOT 1
- ApiBuilder.ApiResponse is not a constructor error @ claudia-api-builder v3.0.x HOT 1
- Unable to use ApiResponse to return readable errors when serving binary content HOT 3
- CORS with Cognito Authorizer HOT 2
- Environment variable aka stage dev/prod HOT 1
- Add options to `ApiResponse` HOT 1
- A sibling ({uuid}) of this resource already has a variable path part -- only one is allowed HOT 1
- Wrong document in cors.md HOT 1
- Authorization with Cognito User Pools and Axios client-side HOT 1
- Default CORs settings (allow-origin: * & allow-credentials: true) Breaks Ajax
- Lambda Node 12 support
- Throwing classes derived from ApiBuilder.ApiResponse is not working correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from claudia-api-builder.