@kayintveen Are these user uploads you’re trying to upload? I imagine the put/get will suffer from out of memory issues; you’ll need to do multi-part uploading instead: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMPphpAPI.html
Mar 12, 2015
4
Level 5
Laravel 5 s3 uploading 115b image files
Hi all,
I've been experimenting with S3. But so far no good.
the following im trying to do
$filename = $image->filename;
$targetPath = public_path().$user->fileLocation;
Storage::disk('s3')->put($user->fileLocation.$filename,Storage::get($targetPath.$filename));
i also tried it without the storage::get
Storage::disk('s3')->put($user->fileLocation.$filename,$targetPath.$filename);
so to be exact the target path points to the local file /var/www/vhosts/... and so on. and the fileLocation points to the folder it has to get.
Please or to participate in this conversation.