Jump to content

File not found error.


divadiva

Recommended Posts

Experts,

 

The requested URL /files/123.pdf was not found on this server.

 

The problem is my code works in testserve not in production.

When I try to upload a pdf file it doesnt uppload.Where as in test it works fine.

Any suggetsions?

 

Here is mycode

 

if(count($_FILES) )
{
$dir = '../files/';

//Only PDF is not loaded in Production where as it works in TestServer.Any suggestions?

if(is_uploaded_file($_FILES['file_configuration_file']['tmp_name'])) {		
		copy($_FILES['file_configuration_file']['tmp_name'], $dir.$_FILES['file_configuration_file']['name']);
		$configuration_file = $_FILES['file_configuration_file']['name'];
	}



}	

 

 

Link to comment
https://forums.phpfreaks.com/topic/143149-file-not-found-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.