exception
:
"Pion\Laravel\ChunkUpload\Exceptions\ChunkSaveException"
file
:
"/home/makinnoi/public_html/vendor/pion/laravel-chunk-upload/src/FileMerger.php"
line
:
25
message
:
"Failed to open output stream."
I use https://github.com/pionl/laravel-chunk-upload
the cod is working fine on localhost xampp but when I upload it on share hosting of greengeeks the above error comes on uploading video I don't know why
anyone could help me to solve this?
@s4muel thanks for replying ,
if the script has write permissions so it also shouldn't work on xamp localhost but it's working fine there , but on server it's not and could you please let me know how to check the permissions of server? Because I am getting that point
well, your local development could (and probably does) differ from the production setup. depends on your production environment. i suppose it is a linux server. simple ls -la command in that directory should output a list of files/folder and their permissions and file owners. if you are not familiar with it, just google around (how to check file permissions in linux) to see what each column and stuff like rwx means in the output and get familiar with it.
and then check the owner and permissions on the folder/file (in production) your upload script is trying to write to. 🤞
when I run the command of ls -ls
I saw many directory and also the directory which is using for storage
drwxr-xr-x 8 makinnoi makinnoi 4096 Sep 2 17:03 public/
drwxr-xr-x 5 makinnoi makinnoi 4096 Sep 1 01:14 storage/