Comments (2)
Good question @latitudehopper, this should definitely be explained better in the docs!
By default uploaded images get assigned a unique random name like 110ec58a-a0f2-4ac4-8393-c866d813b8d1
using the UUID v4 algorithm. All resized versions of this image will have a suffix string appended to them like this: 110ec58a-a0f2-4ac4-8393-c866d813b8d1-small
.
This is configurable, you can use another random name generator of your choosing:
var client = new Upload(process.env.AWS_BUCKET_NAME, {
randomPath: require('@starefossen/rand-path')
});
or you can set the name for the uploaded image yourself:
client.upload(file, { path: 'my-file-name' }, function(err, versions, meta) {
// uploaded image is here
});
from node-s3-uploader.
Excellent answer. Many thanks. I will have a play! Thanks, @Starefossen
from node-s3-uploader.
Related Issues (20)
- I don't want to upload the original image. HOT 1
- Unable to parse path with space HOT 2
- How to use with form upload and express 4? HOT 5
- File type .xcf (GIMP file) causing uncatchable error HOT 1
- TimeoutError: Connection timed out after 10000ms HOT 5
- Creating image version without specifying max-width (original size), results in smaller image file size (lesser quality?) than a smaller px image? HOT 2
- The authorization mechanism you have provided is not supported HOT 3
- if crop the image with width and aspect ration, how to define from the center/top/down as the position to crop? Thanks. HOT 1
- Feature request / docs request - Usage with Node.js streams HOT 2
- Add ImageMagick installation instructions
- Original uploaded image does not have an extension when the path is specified HOT 2
- client.upload() getting error
- original version removed still with cleanup false in configuration
- Is there a way to generate progressive jpeg versions?
- upload error: convert failed
- It doesn't return or upload original image
- [Feature Request] - Proxy Support
- Problem with ImageMagick 7.x
- Please help more than once but it is the same result
- TimeoutError: Missing credentials in config HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-s3-uploader.