Git Product home page Git Product logo

Comments (5)

judgej avatar judgej commented on June 22, 2024

Sorry, only just spotted this.

I did get a similar error and thought I had fixed it. The error message is a bit of a misnomer, and just means the request is malformed, and it happened after an MS library update. Could you include some PHP and related package versions for me to check please.

Is it a stream you are uploading, orca file from disk?

from flysystem-azure-file-storage.

melvinchia avatar melvinchia commented on June 22, 2024

I tried a file from disk, and just a data array/stream, neither worked.

I'm on PHP 5.6.40, and consilience/flysystem-azure-file-storage is at 0.1.4. league/flysystem is at 1.0.70.

from flysystem-azure-file-storage.

judgej avatar judgej commented on June 22, 2024

I'm using a later version of PHP (7.3 and 7.4) and not seeing a problem writing files.

I'm using academe/laravel-azure-file-storage-driver to deliver the config settings from a Laravel filesystem to this package. The setting looks like this:

        'my-uploads-filesystem' => [
            'driver' => 'azure-file-storage', // This driver.

            'storageAccount' => env('AZURE_FILE_STORAGE_ACCOUNT'),
            'storageAccessKey' => env('AZURE_FILE_STORAGE_ACCESS_KEY'),

            // The file share.
            'fileShareName' => env('AZURE_FILE_STORAGE_NAME', 'name-of-azure-file-share'),

            // Optional settings
            'disableRecursiveDelete' => true,
            'driverOptions' => [],

            'root' => env('MY_ROOT', 'uploads'),
        ],

You may not be using Laravel, but those are the assential settings that are mapped to the driver. I'm not sure what could be happening to cause the MAC signature error, other then the authentication details. The access key I am using is a string of mixed case alpha-numeric characters with "==" at the end.

from flysystem-azure-file-storage.

judgej avatar judgej commented on June 22, 2024

I get exactly the same error with incorrect authenticarion details just listing files in a directory, if that helps.

from flysystem-azure-file-storage.

melvinchia avatar melvinchia commented on June 22, 2024

I'm unable to use PHP7, due to other dependencies on the project and server..

But since I'm able to list and read the file contents of a test file I put up, it shows that something is working, and something isn't correct? 😅

from flysystem-azure-file-storage.

Related Issues (11)

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.