CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 file upload in PHP

Print topic Send  topic

Author Message
nag22
Posted: 04/04/2005, 9:16 AM

I tried to create the file upload by using the component.
this is my temporary folder location :

/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder
this is my file folder location

/usr/local/Apache/testtrac/tt5brtkbeta/file

when i compiled the page i am getting errors.
Warning: copy(/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder/200504041107540.nag.txt): failed to open stream: No such file or directory in /usr/local/Apache/testtrac/tt5btrkbeta/Classes.php on line 1150

Add/Edit FILE TEST Unable to upload the file specified in FileUpload1 - temporary upload folder doesn't exist.
Insufficient filesystem permissions to upload the file specified in FileUpload1 into temporary folder.



i have also given full permissions to both my folders.

mt table is FILE_TEST
AND I HAVE FILEDS NAME,ADDRESS,FILE.
ALONG WITH THE NAME AND ADDRESS THE USER NEEDS TO ATTACH HIS FILE.

Can anyone please help me here.

Thanks

nag22
Posted: 04/05/2005, 4:18 AM

I tried to create the file upload by using the component.
this is my temporary folder location :

/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder
this is my file folder location

/usr/local/Apache/testtrac/tt5brtkbeta/file

when i compiled the page i am getting errors.
Warning: copy(/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder/200504041107540.nag.txt): failed to open stream: No such file or directory in /usr/local/Apache/testtrac/tt5btrkbeta/Classes.php on line 1150

Add/Edit FILE TEST Unable to upload the file specified in FileUpload1 - temporary upload folder doesn't exist.
Insufficient filesystem permissions to upload the file specified in FileUpload1 into temporary folder.



i have also given full permissions to both my folders.

mt table is FILE_TEST
AND I HAVE FILEDS NAME,ADDRESS,FILE.
ALONG WITH THE NAME AND ADDRESS THE USER NEEDS TO ATTACH HIS FILE.

Can anyone please help me here.

Thanks
nag22
Posted: 04/05/2005, 4:19 AM

I tried to create the file upload by using the component.
this is my temporary folder location :

/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder
this is my file folder location

/usr/local/Apache/testtrac/tt5brtkbeta/file

when i compiled the page i am getting errors.
Warning: copy(/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder/200504041107540.nag.txt): failed to open stream: No such file or directory in /usr/local/Apache/testtrac/tt5btrkbeta/Classes.php on line 1150

Add/Edit FILE TEST Unable to upload the file specified in FileUpload1 - temporary upload folder doesn't exist.
Insufficient filesystem permissions to upload the file specified in FileUpload1 into temporary folder.



i have also given full permissions to both my folders.

mt table is FILE_TEST
AND I HAVE FILEDS NAME,ADDRESS,FILE.
ALONG WITH THE NAME AND ADDRESS THE USER NEEDS TO ATTACH HIS FILE.

Can anyone please help me here.

Thanks
nag22
Posted: 04/05/2005, 4:19 AM

Quote nag22:
I tried to create the file upload by using the component.
this is my temporary folder location :

/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder
this is my file folder location

/usr/local/Apache/testtrac/tt5brtkbeta/file

when i compiled the page i am getting errors.
Warning: copy(/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder/200504041107540.nag.txt): failed to open stream: No such file or directory in /usr/local/Apache/testtrac/tt5btrkbeta/Classes.php on line 1150

Add/Edit FILE TEST Unable to upload the file specified in FileUpload1 - temporary upload folder doesn't exist.
Insufficient filesystem permissions to upload the file specified in FileUpload1 into temporary folder.



i have also given full permissions to both my folders.

mt table is FILE_TEST
AND I HAVE FILEDS NAME,ADDRESS,FILE.
ALONG WITH THE NAME AND ADDRESS THE USER NEEDS TO ATTACH HIS FILE.

Can anyone please help me here.

Thanks
Nicole

Posts: 586
Posted: 04/05/2005, 5:28 AM

Hello,
You need to check the following points:
- re-check read/write permissions to temporary and file folders once more;
- check if file was uploaded to Temporary folder or not;
- if PHP is running in safe mode define relative paths to folder in CCS project. And keep in mind that Temporary and File folders should belong to that user under which Apache is running.

_________________
Regards,
Nicole
View profile  Send private message
Ju
Posted: 04/06/2005, 4:12 PM

Quote nag22:
/usr/local/Apache/testtrac/tt5brtkbeta/TemporaryFolder
/usr/local/Apache/testtrac/tt5brtkbeta/file

i have also given full permissions to both my folders.

Make sure that both folders have the permission of 777. Also, why don't you put both folders in the root directory of your web server and get the file uploading working first.
Owen
Posted: 04/14/2005, 5:21 PM

I was having the same problem and switched the permissions to 777 and it worked. But is that bad, to leave a directory on a web server set to 777? Thanks!

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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