Avatar of srujanmiryala
srujanmiryala
Flag for India asked on

IE 8 problem with file upload form

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>

Open in new window


                                                    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
Java EEHTMLInternet Protocols

Avatar of undefined
Last Comment
COBOLdinosaur

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
COBOLdinosaur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes