
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@linear-webdev/linear-uploadthing-nuxt
Advanced tools
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href] [![Nuxt][nuxt-src]][nuxt-href]
Nuxt module for getting started with UploadThing in your Nuxt app.
@uploadthing/nuxt and uploadthing dependencies to your project# Using pnpm
pnpm add -D @uploadthing/nuxt
pnpm add uploadthing
# Using yarn
yarn add --dev @uploadthing/nuxt
yarn add uploadthing
# Using npm
npm install --save-dev @uploadthing/nuxt
npm install uploadthing
# Using bun
bun add -D @uploadthing/nuxt
bun add uploadthing
@uploadthing/nuxt to the modules section of nuxt.config.tsexport default defineNuxtConfig({
modules: ["@uploadthing/nuxt"],
});
That's it! You can now use @uploadthing/nuxt in your Nuxt app ✨
For full documentation, see the UploadThing docs
// server/uploadthing.ts
import { createUploadthing, UTFiles } from "uploadthing/h3";
import type { FileRouter } from "uploadthing/h3";
const f = createUploadthing();
/**
* This is your Uploadthing file router. For more information:
* @see https://docs.uploadthing.com/api-reference/server#file-routes
*/
export const uploadRouter = {
videoAndImage: f({
image: {
maxFileSize: "4MB",
maxFileCount: 4,
acl: "public-read",
},
video: {
maxFileSize: "16MB",
},
})
.middleware(({ event, files }) => {
// ^? H3Event
// Return some metadata to be stored with the file
return { foo: "bar" as const };
})
.onUploadComplete(({ file, metadata }) => {
// ^? { foo: "bar" }
console.log("upload completed", file);
}),
} satisfies FileRouter;
export type UploadRouter = typeof uploadRouter;
<script setup lang="ts">
const alert = (msg: string) => {
window.alert(msg);
};
</script>
<template>
<div>Playground</div>
<UploadButton
:config="{
endpoint: 'videoAndImage',
onClientUploadComplete: (res) => {
console.log(`onClientUploadComplete`, res);
alert('Upload Completed');
},
onUploadBegin: () => {
console.log(`onUploadBegin`);
},
}"
/>
<UploadDropzone
:config="{
endpoint: 'videoAndImage',
onClientUploadComplete: (res) => {
console.log(`onClientUploadComplete`, res);
alert('Upload Completed');
},
onUploadBegin: () => {
console.log(`onUploadBegin`);
},
}"
/>
</template>
Wow, that was easy!
From workspace root:
# Install dependencies
pnpm install
# Develop with the playground
pnpm dev
# Run ESLint
pnpm lint
FAQs
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href] [![Nuxt][nuxt-src]][nuxt-href]
We found that @linear-webdev/linear-uploadthing-nuxt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.