Jump to content

Urgent problem --- Please help!


sonnieboy

Recommended Posts

//Markup

//*initialize file path to be used later.
$path_to_file = '../uploadsFolder/';

     <table border="0">
      <tr>
            <td class="td_input_form">
	 	         <?php
	 	         // if the SignInSheet is empty,
	 	         if(file_exists($path_to_file . $result["SignInSheet"]))
	 	         {
	 	             // Bid file already upload, show checkbox to delete it.
	 	             echo '<input type="file" name="SignInSheet[]" size="50"> <br />';
	 	             echo '<input type="checkbox" name="delete[]" value="'.$result["SignInSheet"].'"> (delete)
                     <a href="http://domain/AppFolder/AppFiles/uploadsFolder/'.$result["SignInSheet"].'" target="_blank" onclick="window.open (this.href, \'child\', \'height=800,width=850,scrollbars\'); return false" type="application/octet-stream">'.$result["SignInSheet"].'</a>';
	 	         }
	 	        else
	 	         {
	 	             //then show file upload field for SignInSheet
	 	             echo '<input type="file" name="SignInSheet[]" size="50">';
	 	         }
	         ?>
       </td>
       <td class="td_hint_form"></td>
      </tr>
     </table>

We have an app that has been stable and working for the past two and half years till yesterday when we started receiving the following error:

 

The specified URL cannot be found

 

This is an app that allows users to enter comments and upload a file that accompanies the comments.

 

When you enter comments and click the submit button without uploading a file. Then no problem; everything works.

 

If however, you upload a file along with the comments, you get the above error message.

What is most interesting is that when you select a file to upload and click the upload button, it is not reaching the processing.php page.

 

We set up and configured php with IIS.

 

I am sure that whatever the problem is has to do with browser or IIS.

 

I have spent all yesterday afternoon and the all day today but could not figure out what the problem could be.

 

Your urgent assistance is greatly appreciated.

I am posting this code snippet although I don't think code is causing the problem.

 

 

Link to comment
Share on other sites

First, thanks for your response.

 

As stated, the only reason I even posted that code is because I am convinced code is not the issue.

 

I say this because when I add debugger to processing.php and click submit, it is not being reached.

 

I have had similar situation about 2 years ago when I started receiving directory not found error.

 

It turned out that I need to increase the size of file uploads in IIS and it solved the problem.

 

I am confident it is something similar except I don't know where to look.

 

I can dump all the thousands of code I have here but I don't think it is the code.

About switching away from IIS, I can begin to look into that but this is so urgent that my head is hurting the many calls and emails I have received so far from management which prompted me to ask for  help.

Edited by sonnieboy
Link to comment
Share on other sites

I have checked the error log and it is not showing me anything.

 

This issue has exactly the same attributes as the Directory Not Found error I alluded to.

So, because when I click the Submit button and it is not reaching the processing.php page, it is not possible to find anything on the server.

 

I have tried a file as small as 25kb and the error occurs.

 

I would add that as at 1:15PM tomorrow, they have been able to upload files.

 

Also, I have set the file limit to up to 2GB and in the past, they have been to upload to 200MB.

I cannot empty the folder because of the traffic on the site.

 

I can probably do that tonight around 11PM when the traffic is very limited of any and see what happens.

 

My gut tells me there is some additional IIS configuration I have to do to resolve this.

 

I just don't know what to look for.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.