0

I want to save uploaded files into the documents path on my Mac.

I tried it like this:

  move_uploaded_file("/Documents/".$_FILES["myflies"]["name"]);

But this is not working. Can anyone please help me?

BDL
  • 21,052
  • 22
  • 49
  • 55
Madhu M
  • 41
  • 1
  • 6
  • Is your webserver running locally on your mac? So you are trying to move something that is on your mac already via a form? – Lelio Faieta Jul 10 '15 at 10:19
  • i used like this: move_uploaded_file($_FILES["myflies"]["tmp_name"],$foldername.$_FILES["myflies"]["name']); to save into Web server.it works.but i want to save it to Documents in finder on Mac – Madhu M Jul 10 '15 at 10:25
  • http://stackoverflow.com/questions/10990/what-are-the-proper-permissions-for-an-upload-folder-with-php-apache – mim. Jul 10 '15 at 10:27

0 Answers0