Socket
Socket
Sign inDemoInstall

next-file

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-file - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "next-file",
"version": "1.0.3",
"version": "1.0.4",
"description": "Next-File is a lightweight npm package tailored for file management within Next.js applications. It simplifies the process of uploading files to your Next.js server and provides an easy-to-use interface for deleting files when they are no longer needed. With seamless integration into Next.js projects, this package offers robust functionality to handle file uploads and deletions efficiently, enhancing the development experience for Next.js developers.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -75,3 +75,3 @@ Next-File is a lightweight npm package tailored for file management within Next.js applications. It simplifies the process of uploading files to your Next.js server and provides an easy-to-use interface for deleting files when they are no longer needed. With seamless integration into Next.js projects, this package offers robust functionality to handle file uploads and deletions efficiently, enhancing the development experience for Next.js developers.

const response = await axios.post('http://localhost:3000/upload', formData, {
const response = await axios.post('http://localhost:3000/api/upload', formData, {
headers: {

@@ -126,3 +126,3 @@ 'Content-Type': 'multipart/form-data'

const response = await fetch('http://localhost:3000/upload', {
const response = await fetch('http://localhost:3000/api/upload', {
method: 'POST',

@@ -129,0 +129,0 @@ body: formData

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc