Giter VIP home page Giter VIP logo

Comments (3)

OJezu avatar OJezu commented on July 26, 2024 5

@RomainLanz

  • 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.

RomainLanz avatar RomainLanz commented on July 26, 2024

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.

zamarawka avatar zamarawka commented on July 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.