Git Product home page Git Product logo

rodneylab / sveltekit-s3-multipart-upload Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 655 KB

SvelteKit S3 Multipart Upload: how you can upload large files, such as video to your S3 compatible storage provider using presigned URLs.

License: BSD 3-Clause "New" or "Revised" License

JavaScript 47.34% Shell 1.32% HTML 3.20% Svelte 45.11% CSS 3.03%
svelte sveltekit cloud-storage s3-compatible multipart-uploads presignedurl

sveltekit-s3-multipart-upload's Introduction

Rodney Lab Github banner

Rodney Lab

I’m Rodney, a Game Developer with an “Eternal Student” mindset. I create content on game and web development.

Take a look at the latest tutorials and Rodney Lab blog posts.

🧑🏽‍🎓 Tutorials

📱 Get in touch

🧑🏽 News

Sign up for the Newsletter to keep in touch.

🔩 Projects

  • 🔥 sveltekit-blog-mdx — SvelteKit starter blog using MDsveX
  • 🤖 sveltekit-seo — example code for setting up SEO on a SvelteKit blog
  • 🌤 astro-blog-markdown — Astro Markdown Blog starter
  • 🚀 astro — example and demo code from Rodney Lab Astro articles including StackBlitz links
  • ☁️ serverless-rust — example and demo code from Rodney Lab Serverless Rust articles

💙 Support Me

You can support me and buy me a coffee, if you are able to.

⌨️ Latest Blog Posts

sveltekit-s3-multipart-upload's People

Contributors

rodneylab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

abdurrauf2022

sveltekit-s3-multipart-upload's Issues

Bug with Cloudflare R2

Describe the bug

When you try to use this with Cloudflare R2 it doesn't work giving an error:
Error in handleSubmit on / route: TypeError: Cannot read properties of undefined (reading 'forEach')

Error: Invalid response from route /api/presigned-urls.json: handler should return a Response object

To Reproduce
clone main branch,
update line 29 of storage.js with fetch(https://${S3_COMPATIBLE_ACCOUNT_ID}.r2.cloudflarestorage.com,
update .env with cloudflare r2 credentials

Here is a link to the cloudflare r2 example for aws-sdk-js
https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js-v3/

Expected behaviour

the api to to return a response with the error message included

Screenshots

Desktop (please complete the following information):

  • OS: arch linux
  • Browser thorium/ chromium
  • Version 109.0.5361.0

Smartphone (please complete the following information):
NA
Additional context
NA

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.