CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [Solved] Upload entire folder (with contents) to server

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.