New files cannot read other computer, sharing folder from windows server

0

i'm create website using PHP then i put in windows server. Website running normally i'm also to sharing folder program to client (LAN) and set permission to Everyone can read files.

When user upload files then files save to folder program and can see files in windows server. But when client computer access sharing folder, cannot found/read new files from upload. I'm try create file and copy file in folder, client computer can read this files. Why when upload files from PHP, client cannot read file from upload from website PHP ?

i found different permission, when i'm upload from website. this file only 3 permission no permission "Everyone"

enter image description here

This file from create file or copy file, not upload. there have a 4 permission, have a "Everyone" permission.

enter image description here

i'm already test with this code, with chmod but not result :(

move_uploaded_file($tmp,$path_with_file_name);
   chmod($path_with_file_name, 0777);

or

move_uploaded_file($tmp,$path_with_file_name);
   chmod($path_with_file_name, 0755);

How to add permission Everyone when upload file using web PHP ?

Server OS : Windows Server 2019

Client OS : Windows 10

How to solve this problem ? help me thank's

Maestro Vladimir

Posted 2019-11-06T18:43:17.447

Reputation:

1Set the permissions for Everyone on the directory and choose this folder, subolders and files and replace on existing or some such settings. – AbraCadaver – 2019-11-06T19:52:20.677

i'm already set permission project "Everyone" – None – 2019-11-06T19:53:13.093

FYI chmod has no effect on Windows servers. I agree with AbraCadaver - add Everyone to the containing folder. – Typel – 2019-11-06T19:56:00.113

@Typel I'm already set permission "Everyone", but no effect >> https://imgur.com/xIAQM4Z

– None – 2019-11-06T20:03:10.947

In the question it is not clear from your wording whether people are trying to "see" the files over a network share or by using a page in your website or some other means. Can you clarify this part? – Typel – 2019-11-06T20:12:19.187

When you add Everyone there is a Replace all child object permissions entries with inheritable permission entries from this object Did you check that? – AbraCadaver – 2019-11-06T20:58:42.110

No answers