Avatar of srujanmiryala
srujanmiryalaFlag 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
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
HTML
HTML

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo