Comments (7)
Thanks for your interest! I'm still actively working on it, so I haven't made a demo for all of the features yet. I'll work on a demo for the image upload a.s.a.p, and let you know. Are you using it with Spaces or S3?
from quickstart-netlify-spaces.
Thanks for the quick response! We are using Spaces. Yes, code for image would be great. Also, actually, we are trying to upload a PDF using PDFKit + Spaces. We were trying to use something like this: https://stackoverflow.com/questions/52723579/uploading-pdfkit-pdf-stream-to-s3-bucket-from-lambda-function-gives-error-canno - but with no luck.
from quickstart-netlify-spaces.
I've now added an image upload and resize example in the demo (you can set the max dimensions in the example code). Let me know if this works for you
from quickstart-netlify-spaces.
Yes, this is fantastic. Thanks so much! If you have any clue on how to integrate PDFKit for PDF's (or some other PDF creator) that would be great. It would be similar to the JSON functionality. Type in some text into a text box in a form, and then a PDF is created and uploaded to Spaces based on the text you entered. So instead of a Json file, a pdf file is created.
from quickstart-netlify-spaces.
PDF generation is currently outside of the scope of this project, but something like this should theoretically work:
let pdf = new PDFDocument();
pdf.text("The text for your PDF");
pdf.end();
var params = {
Key: filename,
Body: pdf,
Bucket: process.env.S3_BUCKET,
ContentType: "application/pdf",
};
Closing this now as the original issue has been fixed, but feel free to open a new issue or contact me directly
from quickstart-netlify-spaces.
thanks. How do we contact you directly?
from quickstart-netlify-spaces.
DM me on https://twitter.com/dashpilot1
from quickstart-netlify-spaces.
Related Issues (1)
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 quickstart-netlify-spaces.