troubleshooting Question

IE 8 problem with file upload form

Avatar of srujanmiryala
srujanmiryalaFlag for India asked on
HTMLJava EEInternet Protocols
1 Comment1 Solution1515 ViewsLast Modified:
Hi,
      I am developing a web application using spring mvc. I got stuck up with an issue with IE8. I am trying to upload a file in the application. For this I am using the code below

<form:form modelAttribute="fileItem" method="post" enctype="multipart/form-data" action="attachFile.do"  target="upload_target">
           <fieldset>           
              
              <span class="label">File: </span> 
			  <form:input path="fileData" type="file" cssErrorClass="fieldError" />
		      <input type="submit" value="Upload"  />
           </fieldset> 
           
</form:form>
  
        
<iframe id="upload_target" name="upload_target" src="about:blank" style="width:0;height:0;border:0px solid #fff;"></iframe>

                                                    The file is uploading correctly in all the browsers, In IE 8 I am facing a problem and it works fine in IE 9. I am attaching the screen shot on what is happening when upload button is clicked, And the thing is in back-end the file is being stored into DB.
                               And when I click on the details button in the dialog appeared in the screen shot, below is the data displayed:

PLATFORM VERSION INFO
      Windows                   : 6.1.7601.65536 (Win32NT)
      Common Language Runtime       : 4.0.30319.296
      System.Deployment.dll             : 4.0.30319.1 (RTMRel.030319-0100)
      clr.dll                   : 4.0.30319.296 (RTMGDR.030319-2900)
      dfdll.dll                   : 4.0.30319.1 (RTMRel.030319-0100)
      dfshim.dll                   : 4.0.31106.0 (Main.031106-0000)

SOURCES
      Deployment url                  : http://localhost:8080/xxxxx/attachFile.do

ERROR SUMMARY
      Below is a summary of the errors, details of these errors are listed later in the log.
      * Activation of http://localhost:8080/xxxxx/attachFile.do resulted in exception. Following failure messages were detected:
            + The remote server returned an error: (403) Forbidden.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
      No transaction error was detected.

WARNINGS
      There were no warnings during this operation.

OPERATION PROGRESS STATUS
      * [3/28/2013 10:45:39 AM] : Activation of http://localhost:8080/xxxxx/attachFile.do has started.

ERROR DETAILS
      Following errors were detected during this operation.
      * [3/28/2013 10:45:54 AM] System.Net.WebException
            - The remote server returned an error: (403) Forbidden.
            - Source: System
            - Stack trace:
                  at System.Net.HttpWebRequest.GetResponse()
                  at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
                  at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
                  at System.Xml.XmlTextReaderImpl.OpenAndPush(Uri uri)
                  at System.Xml.XmlTextReaderImpl.PushExternalEntityOrSubset(String publicId, String systemId, String baseUriStr, Uri& baseUri, String entityName)
                  at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId)
                  at System.Xml.DtdParser.ParseExternalSubset()
                  at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
                  at System.Xml.DtdParser.System.Xml.IDtdParser.ParseInternalDtd(IDtdParserAdapter adapter, Boolean saveInternalSubset)
                  at System.Xml.XmlTextReaderImpl.ParseDtd()
                  at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
                  at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
                  at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
                  at System.Xml.XmlCharCheckingReader.Read()
                  at System.Xml.XsdValidatingReader.Read()
                  at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
                  at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
                  at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
                  at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
                  at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
      No transaction information is available.

Please help me out, Thanks in advance
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros