Comments (3)
- Setting the Content-Type for proper delivery from the cloud to other clients. Example with the thumbnail service given above.
- Adding versioning or owner info to the stored file using metadata mechanisms available for all cloud storages.
- Avoiding potential security issues, if attacker uploads a executable file, where an image is expected, and then it is stored in cloud with wrong Content-Type (default application/octet-stream instead of image/*).
- This is a feature of all cloud storages, deemed needed or useful by all cloud product teams.
from flydrive.
Hey @OJezu! 👋
Could you please provide a real world example of this use-case?
I cannot really get why it would be useful.
from flydrive.
@RomainLanz I stuck with wrong content-type too. May be I miss something, but I upload data to aws s3 by this code
disk.put(storagePath, fs.createReadStream(file.path))
. As result I get on s3 content-type: 'application/octet-stream', so i couldn't deliver these files from s3 by s3-website.
from flydrive.
Related Issues (20)
- Cannot find module 'aws-sdk' when trying to use only gcs driver HOT 5
- fs-extra has no default export HOT 1
- Types are not available on typescript
- Support for make public HOT 8
- Latest version doesn't work. HOT 2
- Type differences in Readable HOT 3
- How to get registered drivers HOT 3
- Add createWriteStream() method support HOT 2
- Add license.md file
- UnexpectedParameter: Unexpected key 'Expiry' found in params HOT 1
- [FeatureRequest] Return file size when using a stream.
- FTP driver
- Does support for making directories exist? HOT 2
- fs_1.promises.opendir is not a function HOT 4
- Set subfolder as bucket root HOT 1
- S3 flatlist Delimiter HOT 2
- S3 copy
- Problems with S3 URL generation HOT 2
- flatList doesn't work with local storage HOT 1
- Is this repo is still alive HOT 2
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 flydrive.