php script for uploading file to mapped network drive is not working . Following are the php script:
$newfilename = "something.wav";
$path = 'Y:\\uploaded\\'.$newfilename;
copy($_FILES['ufile']['tmp_name'], $path);
I have also check permission for network drive folder.I have Y drive mapped to the network drive(10.4.4.32) d drive within uploaded folder. It have full control permission. I have tried following path for network drive:
- Y:\uploaded\
- \\10.4.4.32\d$\uploaded\
- move_uploaded_file($_FILES['ufile']['tmp_name'], $path);
But, It works on local drive like:
- d:\uploaded\ The file is uploaded in local drive but could not uploaded in network drive. I have used php 5.3 and IIS 7 for application
Errors Showed: Warning: copy(\10.4.4.32\d$\uploaded\test.wav): failed to open stream: Permission denied in C:\inetpub\wwwroot\myapp\upload.php on line 107
I have allow permission of full control in the properties of the uploaded folder for EVERYONE user. Is there any other permission , I should fixed.