Comments (5)
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.
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.
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.
I get exactly the same error with incorrect authenticarion details just listing files in a directory, if that helps.
from flysystem-azure-file-storage.
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)
- Not listing directories
- Upgrade for Laravel 9.x (PHP 8.1, Flysystem 3.0)
- [1.x]: Excessive client calls HOT 2
- Moving files does not work for non-URL safe paths or filenames HOT 8
- Make URL for a file public HOT 1
- Exception when using directory prefix HOT 2
- Move to consilience organisation HOT 1
- Streams not quite working correctly HOT 4
- Unit tests and integration tests HOT 1
- Cannot stream from one share into another HOT 1
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 flysystem-azure-file-storage.