Giter Site home page Giter Site logo

Adonis S3 Driver is not working properly about drive HOT 5 CLOSED

 avatar commented on August 27, 2024
Adonis S3 Driver is not working properly

from drive.

Comments (5)

thetutlage avatar thetutlage commented on August 27, 2024

Can you please share a repo that helps me reproduce the issue, or create a test in drive-s3 repo that fails to set the content-type?

Coz we already have a test in place that verifies it is working. https://github.com/adonisjs/drive-s3/blob/develop/test/s3-driver.spec.ts#L197-L222

from drive.

 avatar commented on August 27, 2024

Can you please share a repo that helps me reproduce the issue, or create a test in drive-s3 repo that fails to set the content-type?

Coz we already have a test in place that verifies it is working. https://github.com/adonisjs/drive-s3/blob/develop/test/s3-driver.spec.ts#L197-L222

I have just created this repo: https://github.com/matheus-polska/upload-adonis

To run it, you just need to create a .env file with your bucket infos, and within /start/routes.ts you can find the upload route.

The upload works normally, just the contentType can not be changed

And also i'd like to be sure my endpoint is correct.

from drive.

thetutlage avatar thetutlage commented on August 27, 2024

Thanks for creating the repo. Looks like a bug with the DriveManager class not forwarding options to the drive. Will work on the fix.

Also, incase you missed it. You can also use the file.moveToDisk method. https://docs.adonisjs.com/guides/drive#bodyparser-movetodisk

from drive.

 avatar commented on August 27, 2024

Thanks, do you have an idea when its gonne be fixed? I mean, should i wait or try to find other solutions?

anyways, thanks for the quick support :)

from drive.

abdullateefakorede avatar abdullateefakorede commented on August 27, 2024

is this issue resolved?

from drive.

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.