Skip to content

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!

@pkg-pr-new
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