I am creating an eCommerce solution in laravel and I need to store product Image, I need suggestions what would be the best way to store product images? Is local storage where files are hosting or any other cloud storage would be better?
There are some really handy methods for treating an object as having just one single image attached to it. I also think that it handles the file storage / destination work very well.
Thank you @goatshark for reply actually I am handling s3 perfectly. But the issue I am facing with s3 uploading. It is taking too much time. suppose one image of 800kb takes about 1.5 or 2 mins to upload. Thats why I am asking the best practice for image storing.
Is there any other thing that can be creating issue while uploading, like forge, nginx ??
@umerhassan The Internet connection I'm on most of the time has very limited upload. It sounds like your's does/might too. If you just save locally, does it save almost immediately? Just trying to determine if the upload speed is your bottleneck. If it is, you could save locally in development and save to s3 in production. Or save locally and fire an Event/Listener or Job to do the work of talking to s3 (or anyone out in the network).
Yea same here locally it save almost immediately. But If we switch to s3 it slows down. I was curious that is there anything wrong with my process of uploading.