2

Possible Duplicate:
how to upload folder with php

I know we can upload single or multiple files. But I want to select the entire directory. Is it possible?

Community
  • 1
  • 1
Erick Engelhardt
  • 704
  • 2
  • 10
  • 30
  • 2
    Upload from where ? from a client using a browser ? or using PHP and CURL perhaps ? or something else ? what have you attempted so far ? anything ? your question as it stands lacks any kind of detail and is likely to be closed any minute ... – Manse Mar 28 '12 at 15:26
  • 1
    If all else fails, you could just zip it up first. – Wiseguy Mar 28 '12 at 15:27

1 Answers1

2

PHP is serverside, and the program uploading stuff is the browser. The correct question is "Can a browser upload a whole folder?". And the reply is: most browsers are programed to upload single files.. but It would be possible to write a browser to tar.gz a folder, and upload that file.

The protocol as not limitation on how much files attachements are uploaded.

Other related protocol is webdav...

Tei
  • 1,400
  • 8
  • 6