Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image type not compatible with Vapor #48

Open
stephenkhoo opened this issue Apr 20, 2023 · 0 comments
Open

Image type not compatible with Vapor #48

stephenkhoo opened this issue Apr 20, 2023 · 0 comments

Comments

@stephenkhoo
Copy link

When using laravel-vapor, the image will not upload to the compute unit (lambda) before passing to s3.
It will stream the file to s3 (using presign url generated from Laravel), then just passing the path of the uploaded file to move to our target destination.
Reference: https://docs.vapor.build/1.0/resources/storage.html#file-uploads

Is there a way to modify the behaviour of the front end image type to be able to add in the code to stream the file to s3 in front end.

I saw there's a place to mutate the backend logic for image type, where can change to use Storage::copy instead of store.
But in the front end might need to have the ability to overwrite to do that?

If there's anything align to the goal of this package, I'm willing to contribute to the package as well.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant