Comparing version 0.0.2 to 0.0.3
@@ -28,5 +28,5 @@ #!/usr/bin/env node | ||
let imagePath = path.resolve(process.cwd(), image); | ||
let imageAsBase64 = fs.readFileSync(imagePath, 'base64'); | ||
let imageFile = fs.readFileSync(imagePath); | ||
axios.post(endpoint, { | ||
data: imageAsBase64, | ||
data: imageFile, | ||
name: image | ||
@@ -33,0 +33,0 @@ }) |
{ | ||
"name": "upldng", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Simple uploader for personal use", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2170