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

 Move files after upload

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 10/01/2010, 4:05 AM

Ok.. so I want to upload some sensitive data using the File Upload Component.

It goes to TEMP then to uploads folder.. I have to set both to 777..

How do I protect these docs?

Can I move the files to a different folder that has 770?
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
datadoit
Posted: 10/01/2010, 10:37 AM

You should be able to get away with 755 (-rwxr-xr-x) on your uploads
folder. When the file is uploaded, it goes in with the ownership and
group membership of your web server user (as specified in php.ini,
typically 'apache'). Thus, the 'apache' user can then move the file to
it's permanent home, as long as the uploads folder has ownership of the
same (apache).
ckroon

Posts: 869
Posted: 10/01/2010, 1:54 PM

Nope... the CCS file upload component tells me it is Insufficient Permissions.

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
datadoit
Posted: 10/01/2010, 2:08 PM

Have you verified that ownership of the uploads folder is the same as
your web server user permissions? apache?

drwxr-xr-x apache apache uploads

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.

Web Database

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.