mostafatalebi Posted March 20, 2013 Share Posted March 20, 2013 hello I have a very strange problem. I have written my site in php. then at a part of it, a file-link to what the user has uploaded is available, the link as it appears in url-bar is healthy and all correct, but when I click on it, instead of downloading it, it goes to 404 page. What is the problem? why it does not download it when everything else seems working? Quote Link to comment https://forums.phpfreaks.com/topic/275947-404-not-found-for-a-file-all-healthy/ Share on other sites More sharing options...
requinix Posted March 21, 2013 Share Posted March 21, 2013 Because whatever you clicked doesn't exist. It's that simple. That could mean any number of possible things at fault: the link is wrong, there's URL rewriting that's changing it to something else, there's code that has a 404, Apache can't see the file... Quote Link to comment https://forums.phpfreaks.com/topic/275947-404-not-found-for-a-file-all-healthy/#findComment-1419970 Share on other sites More sharing options...
mostafatalebi Posted March 21, 2013 Author Share Posted March 21, 2013 (edited) I see the file. but I also got what you said. it is probably a session_data intervening... Edited March 21, 2013 by mostafatalebi Quote Link to comment https://forums.phpfreaks.com/topic/275947-404-not-found-for-a-file-all-healthy/#findComment-1420102 Share on other sites More sharing options...
mostafatalebi Posted March 21, 2013 Author Share Posted March 21, 2013 still not solved. everything seems placed properly, as it has to, but the result remain 404 Quote Link to comment https://forums.phpfreaks.com/topic/275947-404-not-found-for-a-file-all-healthy/#findComment-1420200 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.