Markie
Posts: 251
|
| Posted: 12/18/2008, 2:32 AM |
|
Does anybody have any experience with uploading entire folders (with content) in a CCS project ? I wonder how to do this. I have read some information about php copy (http://nl.php.net/copy) but I really need some help with this.
_________________
The Netherlands, GMT+1
Tools: CCS 5.1, Windows 7, Navicat, Ultraedit
Local server: XAMPP with Apache, php and MySQL
Webserver: Windows 2008 IIS 7, php and MySQL |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 12/18/2008, 7:22 AM |
|
Hi Markie
Unfortunately uploading an entire directory is not possible, File uploads are handled actually by the html as a form of type file. This causes the html to submit the file to the server by the post method where then PHP has access to it.
If you notice in a CCS upload component that is exactly what is created in the html and a directory is not selectable in the browse function.
Since PHP is running at the server it has no visibility to the files on the clinet box. It is up to the client to post to the server and it only has the capability to post a single file.
One possibile solution is to figure out how you can create an actixe x control that would maybe pack all the contents of the directory in to a zip file or Tar file that the server can extract. However, I think you might find this prohibitively difficult to do with all the security stuff in browsers these days.
Sorry that this is not the answer you were hoping for.
Take Care.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
|