Comparing version 1.0.3 to 1.0.4
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65961