Skip to content
Advertisement

Laravel : Upload 64base image instead of normal

I have an application using React and Laravel where I’m uploading images. I’m using Laravel Image Intervention package.

When testing my API, the upload for a normal image works perfectly.

Using React, the user can select an image from his pc and crop it, then he sees the preview as a generated cropped 64base image.

I would want to upload the generated 64base image to my database instead of a normal one, how to do so ?

Fileupload controller

JavaScript

Advertisement

Answer

This one should work

JavaScript

Possible alternative:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement