GithubHelp home page GithubHelp logo

Comments (7)

dashpilot avatar dashpilot commented on June 10, 2024

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.

osseonews avatar osseonews commented on June 10, 2024

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.

dashpilot avatar dashpilot commented on June 10, 2024

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.

osseonews avatar osseonews commented on June 10, 2024

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.

dashpilot avatar dashpilot commented on June 10, 2024

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.

osseonews avatar osseonews commented on June 10, 2024

thanks. How do we contact you directly?

from quickstart-netlify-spaces.

dashpilot avatar dashpilot commented on June 10, 2024

DM me on https://twitter.com/dashpilot1

from quickstart-netlify-spaces.

Related Issues (1)

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.