4 years ago

Image upload using storage function to public folder

Posted 4 years ago by evilprogrammer

I am building a social network using laravel!! So far i love laravel ans thanks to the pple behind it.

Like we all know social networks tend to use alot of images like user gallery and much storage space also.

The thing is i would like to upload images locally then use a queue to send it to S3 in the background. But displaying these images to the broswer becomes a problem since they are stored in storage folder. From the research i have done i could create a route that would return the image file responce but won't that take more time and server resources?? Is there a way i could use the storage function and save the images in the public/uploads folder??

Please sign in or create an account to participate in this conversation.