CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 File Upload in CCS2.0.5.6

Print topic Send  topic

Author Message
Karen
Posted: 04/07/2003, 12:13 AM

I am trying to get the file upload to work but can't seem to. I'm using PHP/MySQL and I hope that someone who has done this can point me in the right direction.

I have added the file upload component to my record type form and specified the control source and file folder. My first problem is the temporary folder. If I leave it as an environment variable, I will receive an error message saying the directory does not exist. Then I rename it to an absolute path and when I view live page, it now says that there is insufficient rights to upload the file to the path specified. But I haven't even tried to upload anything yet??? And also, there's read and write access globally for that directory.

In CC2.05, I did not have to specify the temporary folder, it just used the server's default tmp directory. Now I have to specify, I would still like to use the server's default.

Pls help me! Thanks in advance.
GreggB
Posted: 04/07/2003, 4:47 AM

Karen,

I had many of the same problems particularly because I develop on IIS and publish to Apache on Linux. I concentrated on making the code work on the production server with Apache using static paths as you have suggested. Once I got the paths and permissions the Upload worked fine. I don't know if this is the best or right solution but it works.

1)Temporary Folder – This is a temporary folder on your web server (Host) for the actual file upload process. The file in this folder is deleted after being moved to the “File Folder” path.

2)File Folder – This is the path on your web server where the file will be moved to, from the “Temporary Folder”

3)File Permissions – Make sure both of the above locations have adequate file permission to write to these locations.

4)Paths: Make sure you have the correct paths in both the above locations for your server. For users that are uploading to virtual web sites, it is critical for you to know the correct path i.e.
a) Temporary Folder: /home/virtual/yourdomain.com/var/www/html/TEMP
b) File Folder: /home/virtual/yourdomain.com/var/www/html/images

Paths will be different based on how the server and your www are setup. Also, as you have already noted, the Upload is checking for paths and file names when the Record Form is run. This is good for trouble shooting but a bit confusing at first.

Hope this helps

GreggB

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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