Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ziben69's avatar

File upload - failed to open stream: Permission denied

Hello guys, I have problem with store file in my local storage

fopen(C:\xampp\htdocs\laravel\storage\app/public\public/storage/files/2g7cY5RytGcEiXLakZO1hw1hOpkVVRF8rTZCbYMd.): failed to open stream: Permission denied

three days ago everything worked, now that I'm suddenly testing the folder's lack of permissions, and the path to the file's destination looks like it looks.

What this is all about. How can I give write access to this folder?

I will add that I have seen many solutions, but all were on linux, and I work on the windows

0 likes
12 replies
Sergiu17's avatar

@ZIBEN69 - Right click on the folder, Security Tab, and somewhere should be Permission Button, I've never done this before

ziben69's avatar

I gave full permissions to the folder, but still the same. I put a project on the server and check if it works.

realrandyallen's avatar

@ZIBEN69 - This part of the path seems strange, maybe it's actually not being found?

\storage\app/public\public/storage/
1 like
ziben69's avatar

But its generated by store() function. I have store('/files') only

kajal's avatar

Hey @ziben69,

Did you find out the solution I'm facing the same problem?

Tray2's avatar

Open your own thread and ask the question don't highjack one that is two years old.

1 like
stefan s.'s avatar

I had a similar problem when saving files via storeAs, the problem was due to the wrong path

ziben69's avatar

Look at date when I posted this? =)

Please or to participate in this conversation.