v2-hub icon indicating copy to clipboard operation
v2-hub copied to clipboard

S3 Pre-signed URLs not working which prevents CP viewing of previews

Open thestepafter opened this issue 7 years ago • 6 comments

We created new S3 assets bucket with the below configuration

key: <key>
secret: <secret>
bucket: test-gn
version: latest
region: us-east-1
endpoint: https://play.minio.io:9000
path: /
driver: s3
use_path_style_endpoint: true
title: S3

Uploading and listing of files working good!

But when you try to get the file it pop-up the error

getimagesize(https://play.minio.io:9000/test-gn/code.png): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

However if we try the below code in Laravel it works cloud driver as S3

\Illuminate\Support\Facades\Storage::get('code.png');

Use same code on Statamic and it says driver not supported/installed.

So question is how we can assets using pre-signed url or simply use Laravel filesystem.'

We are on the latest version of Statamic.

thestepafter avatar Nov 23 '18 18:11 thestepafter

if we try the below code in Laravel

What version of Laravel?

jasonvarga avatar Nov 24 '18 17:11 jasonvarga

Laravel 5.1.

thestepafter avatar Nov 25 '18 05:11 thestepafter

Can you point me to the documentation on the thing you're trying to do?

jasonvarga avatar Nov 27 '18 16:11 jasonvarga

We are trying to integrate with https://docs.minio.io/.

thestepafter avatar Dec 13 '18 00:12 thestepafter

Having the same issue... This is pretty old. Anyone working on this?

repomaa avatar Jun 03 '20 15:06 repomaa

@repomaa Unfortunately we were unable to proceed with this as it was a proof of concept and went in another direction.

thestepafter avatar Jun 05 '20 02:06 thestepafter