112 questions
1
vote
2
answers
385
views
Laravel 11 + Backblaze B2 (S3-Compatible): PUT error — "Unsupported header 'x-amz-checksum-crc32'" when uploading files
I'm using Laravel's filesystem with the S3 driver to connect to Backblaze B2's S3-compatible API. Here's my disk configuration in config/filesystems.php:
'disks' => [
'b2' => [
'...
1
vote
1
answer
95
views
Why is my file upload not saving to the database?
I am trying to create a post form where the user can upload an image and the image isn't being saved as well as the asset model isn't creating a new entry. I am using Livewire and Laravel's Filesystem....
0
votes
1
answer
613
views
How to stream a video in Laravel
I'm trying to stream a video in Laravel 9 by using imanghafoori1/laravel-video package.
but I keep getting an error message:
fopen(C:...\storage\videoFiles/ui/2024-02-11-1-I6bnWsI8J0-128210 (Original)...
0
votes
0
answers
369
views
Laravel access to files from another PC / Mapped Network Drive
Sorry i'm still new to this.
I would like to access/read files from another PC within the same network using Laravel. I can access the files over mapped network drive from my PC.
I have try to access ...
1
vote
3
answers
2k
views
AWS AssumeRole with Laravel Filesystem
I'm currently trying to figure something out.
I have 2 AWS Accounts.
Account A has a bucket called my_awesome_files.
Account B has users, that would like to be able to see those documents in ...
0
votes
0
answers
112
views
Disk [test-s3] does not have not have a configured drivers
Storage::disk('test-s3')->put($fileName, fopen($file_s3, 'rb')); throws error Disk [test-s3] does not have not have a configured drivers3s Below is the file system configuration 'disks' => [ '...
3
votes
3
answers
590
views
Laravel php delete a directory (folder) via sftp
I am trying to delete a folder on my server via sftp. I am using php 7.4.13 and laravel 7.30.4
I have set up my sftp drive and everything (upload, delete files, create directory) works fine.
But the ...
0
votes
1
answer
987
views
Laravel Nova : Avatar Fields using S3 disk but return 0 value
i try to upload avatar photo on my user model, using laravel nova Fields\Avatar applying the simpliest code, but it return 0 value on my database, the disk already set to s3 disk in filesystem also ...
0
votes
2
answers
1k
views
Cannot move image/files temp to public directory Laravel 9
I am trying to upload an image in Laravel. Getting the following error:
"message": "Could not move the file \"C:\\xampp\\tmp\\php84AA.tmp\" to \"F:\\bvend\\bvend-web\\...
2
votes
1
answer
662
views
How to make filename of file uploaded with getClientOriginalName make safe?
In https://laravel.com/docs/9.x/filesystem#file-uploads I read as file custom file uploading :
However, keep in mind that the getClientOriginalName and getClientOriginalExtension methods are ...
0
votes
0
answers
365
views
laravel returns error 403 when trying to access an image or file in a new directory that was created while uploading the file
laravel returns 403 forbidded when trying to access a file I uploaded to a new directory that was created while uploading the file
Please help what can I do?
1
vote
2
answers
1k
views
Laravel creating cache files under different users and different permissions
The server sometimes encounter permission errors. When checked the cache directory the cache files are being written under different users and permissions. I guess the issue is causing because of that....
-2
votes
1
answer
1k
views
Image not uploading in laravel 8 didn't take hasFile [closed]
I am trying to upload an image and save it into a folder and database. But when I submit the form get all the data including the image file name but the image is not saved. In the database save as a ...
2
votes
2
answers
2k
views
Can S3 Laravel Disk be pointed at a specific folder within a bucket
In Laravel filesystems you have the standard s3 details like below:
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID', 'your-key'),
'secret' => env('...
5
votes
1
answer
9k
views
League\\Flysystem\\AwsS3v3\\AwsS3Adapter::__construct(): Argument #1 ($client) must be of type Aws\\S3Client, Aws\\S3\\S3Client given
I have installed the s3 flysystem package by running the following composer command in my Laravel 8 project
composer require --with-all-dependencies league/flysystem-aws-s3-v3 "^1.0"
and ...
0
votes
2
answers
343
views
Laravel copyDirectory function not working
I wanna copy or move a directory to a new directory in laravel but the copyDirectory function always return false to me. Am I doing anything wrong with my code? Thanks in advance
$destinationDir = '...
0
votes
0
answers
46
views
laravel how to access uploaded image by store method with symlink
I'm trying to upload an image in laravel and I'm using store method to save it in storage.
$path = $request->file('avatar')->store('public/avatar');
It's working fine and save the file into ...
2
votes
0
answers
674
views
How to prevent the file from public on Digital Ocean Space?
Hi everyone I stuck on Digital Ocean that I want to prevent my file from the public.
First of all. I set the .env file like this
DO_SPACES_KEY= THE KEY
DO_SPACES_SECRET= THE SECRET
DO_SPACES_ENDPOINT=...
0
votes
1
answer
2k
views
AWS S3 endpoint issue
This is a really strange one as it started throwing errors over night - it's been working fine up until yesterday - this morning it's been playing all day.
I'm using illuminate/filesystem in my ...
1
vote
3
answers
7k
views
Laravel 8.x PDF file validation is not working correctly
I am working on Laravel 8.x. My task is to validate .PDF file on server side. Everyting working fine but when I upload a valid PDF file it is not validating and returning with an error.
My source code ...
0
votes
2
answers
1k
views
axios sending null when uploading files to laravel api. Error Message: "Call to a member function store() on null"
I have a form with file upload. I am using vue, axios and laravel 7 at the moment.
My form is as given below:
<form v-on:submit.prevent="createTask" enctype="multipart/...
0
votes
1
answer
1k
views
File upload returns null in Laravel
I'm working on adding media uploads to my custom CMS. To do this, I have tried multiple forms of the same upload function. When I click upload, the error says 'image' is a required field even with a ...
1
vote
1
answer
752
views
Laravel AWS S3 Image Streaming view [closed]
How can I get AWS S3 image as streaming view?
Now I can see image as following url:
<img src="https://s3.us-east-1.amazonaws.com/my-bucket/image.png" />
I want to get like this:
<...
1
vote
0
answers
1k
views
Laravel flysystem sftp upload slow
I need make upload to a remote server. I made a new disk in filesystems.php
And my upload code looks like this:
$path = 'storage1';
$fileName = Str::random().'.'. $request->file->...
1
vote
1
answer
9k
views
Disk [public] does not have a configured driver. in laravel image upload
I am trying to upload a file to a public folder which was working lately but now it is showing below error:
Disk [public] does not have a configured driver.
I tried checking for configured driver in ...