Comments (6)
Example gist that @infomiho made, for uploading from client to server and then to S3 or to disk: https://gist.github.com/infomiho/ec379df4e33f3ae3410a251ba3aa81af . This is a minimal, "simplistic" version to start with.
I would normally though recommend uploading directly to S3 / ... from the client, and using server only to sign the upload URLs, so it would be good to also have instructions for that.
from open-saas.
file uploads are live and documented at https://docs.opensaas.sh/guides/file-uploading/
from open-saas.
I would normally though recommend uploading directly to S3 / ... from the client, and using server only to sign the upload URLs, so it would be good to also have instructions for that.
what do you think the best way to approach this is @Martinsos? I'm thinking of adding components and operations to the OpenSaaS template for uploading to S3, and then adding the example in the gist above to the docs as an alternative.
from open-saas.
@vincanger I think that sounds like a good idea. The main PITA with the S3 approach is of course, configuring stuff on S3 -> if I remember well, configuring correctly permissions for the bucket is the trickiest part.
In the future, if we had Full Stack Modules (FSMs) for Wasp, this would be a great FSM that you could just plug in. But for now it sounds good to have this as part of the template itself.
Alternatively, it could be something like a "recipe", so it is not in the code immediately, but it is very easy to add -> either by just copying from the docs or even running some command.
from open-saas.
sounds good @Martinsos. working on this now!
from open-saas.
Hey @vincanger , I noticed that using api.post()
on the client side was causing a CORS error that I couldn't resolve but it vanished when I switched to fetch. If you're getting the same error at your end, I can update the docs to use fetch
from open-saas.
Related Issues (20)
- In docs, warn WSL users to put code on Linux file system HOT 1
- How can I send email when user creates account with Google HOT 2
- encourage users to pull template via `wasp new` HOT 3
- add e2e testing documentation
- Bad CPU type in executable HOT 5
- add info on different Stripe payment types (one-time, usage-based) HOT 1
- How to set up a subscription HOT 1
- Set custom port for frontend and backend HOT 2
- Enhance the UI/Design HOT 3
- Websocket keeps connecting and disconnecting HOT 4
- fix wording about sendgrid email to use HOT 1
- Optimizing navigation-link-behaviour HOT 1
- Windows 10 and open-saas error HOT 1
- move Stripe customer portal URLs from `contants.ts` to `.env.client` HOT 1
- Can we integrate other payment gateways HOT 5
- Maybe remove "Getting Updates to the Open SaaS Template" from the Getting Started docs?
- Upgrade Astro and Starlight versions HOT 2
- unable to getting started HOT 2
- Logout button missing padding on mobile devices HOT 1
- checkStripePortalLinkExists throws an error
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 open-saas.