Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(blob): handle pdf type correctly in ensureBlob #392

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

Yizack
Copy link
Contributor

@Yizack Yizack commented Dec 12, 2024

This PR fixes #391

For testing

  1. Run dev server
  2. Open playground/server/api/blob/index.put.ts
  3. Add ensure options to the handleUpload method
ensure: {
   types: ['pdf']
},
  1. Go to http://localhost:3000/blob
  2. Try uploading a pdf file

@Yizack Yizack changed the title fix(blob): handle 'pdf' type correctly in ensureBlob fix(blob): handle pdf type correctly in ensureBlob Dec 12, 2024
Copy link
Contributor

@atinux atinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link

pkg-pr-new bot commented Dec 12, 2024

Open in Stackblitz

npm i https://pkg.pr.new/nuxt-hub/core/@nuxthub/core@392

commit: fa10993

@atinux atinux merged commit c6bddbb into nuxt-hub:main Dec 12, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Short pdf file type not working with ensureBlob composable
2 participants