What's new

RT-N66U. Upload file

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

lexx_13

New Around Here
I have Asus RT-N66U with AsusWRT-Merlin firmware 3.0.0.4.270.25

I have http server on local machine. I configured port forwarding to it (see attach).
I create simple php-script for upload files to http-server.
Code:
<html>
<head>
  <title>Upload file</title>
</head>
<body>
      <h2><p><b>Select file </b></p></h2>
      <form action="upload.php" method="post" enctype="multipart/form-data">
      <input type="file" name="filename"><br> 
      <input type="submit" value="Upload"><br>
      </form>
<?php
if (!empty($_FILES))
{
   if(is_uploaded_file($_FILES["filename"]["tmp_name"]))
   {
     move_uploaded_file($_FILES["filename"]["tmp_name"], "./files/".$_FILES["filename"]["name"]);
   } else {
      echo("Error upload");
   }
}
?>
</body>
</html>

This script works perfect in intranet, but it's not work from internet.
(just long loading of page, very long, more 5 min)
I think it is because of wrong router configure.

Could you help me with my error?
 

Attachments

  • PW.png
    PW.png
    3.7 KB · Views: 620
If you can access the web page from the Internet, then the router is correctly configured and upload should be working.

Make sure it's not a security configuration on your web server that might prevent uploads from people with an IP outside your LAN (either in the firewall or in php.ini).
 
If you can access the web page from the Internet, then the router is correctly configured and upload should be working.

Make sure it's not a security configuration on your web server that might prevent uploads from people with an IP outside your LAN (either in the firewall or in php.ini).

Yes, I have access to the web page from Internet and Intranet.
Upload script works from Intranet, but does not work from Internet (((

I think if from intranet it's work then web-server configured right.
Firewall? Web-server is in windows 7 OS, I find widows firewall settings, but I don't think that this is problem.
 
Yes, I have access to the web page from Internet and Intranet.
Upload script works from Intranet, but does not work from Internet (((

I think if from intranet it's work then web-server configured right.

Not necessarily. You could have a configuration setting that allows uploads from a LAN IP, but not from a public IP, for example.

Uploads work just like requesting a web page: everything gets sent to port 80. So if you can request a page, then it means the router is letting all required traffic through. There's no additional port involved.
 
Thanks to all.
Problem is not in router or configuring my network.

From other computer (excluding work comp) all it's work perfect.
So problem at my work computer/network.

The tread may to close.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top