目前我在设置FineUploader以使用Minio时遇到问题,因为所有可用的文档仅适用于S3。
我已经完成了将Minio整合到Laravel所需的所有步骤,如下所述: https://github.com/minio/cookbook/blob/master/docs/how-to-use-minio-as-laravel-file-storage.md 并成功使用Storage :: disk(' minio)或Storage :: cloud()测试上传。
目前我想直接将文件上传到Minio而不必先将其上传到应用服务器,因此我使用此repo中的控制器示例:
https://github.com/FineUploader/php-laravel-s3-server
我收到的错误:
...
[Fine Uploader 5.15.5] Sending simple upload request for 0
[Fine Uploader 5.15.5] Submitting S3 signature request for 0
[Fine Uploader 5.15.5] Sending POST request for 0
s3/endpoint Failed to load resource: the server responded with a status of 419 (unknown status)
[Fine Uploader 5.15.5] POST request for 0 has failed - response code 419
[Fine Uploader 5.15.5] Response does not include the base64 encoded policy!
[Fine Uploader 5.15.5] Policy signing failed. Response does not include the base64 encoded policy!
在此文件中,第73行上的代码返回错误可能会导致策略签名出现问题: https://github.com/FineUploader/php-laravel-s3-server/blob/master/ExampleController.php
任何人都可以分享使用FineUploader进行Minio集成的示例吗?