javascript - iFrame file upload with IE produces download dialogue -


I am developing a custom module to handle the Duplex Document Management At this point, the module loads, you can upload files (through hidden iframes and some AJAX requests), browse directories and set different levels of permissions. And everything works perfectly in Firefox.

Problem: However, I go into a problem. For some reason when I upload a file, the file save the dialog and I am prompted to download the uploaded file. It seems that this is telling me to download it from the web server TMP location, because this file name and so on. However, if I cancel and refresh the page, then I can see that the file I uploaded It was actually uploaded to the server.

How the process of upload here works

  1. Click on the upload button The upload button is a standard file input form element that is hidden and placed on the style version of the button. Clicking on it causes the "Choose File" dialog to open.
  2. Choose a file and click on "Open". A modal dialog asks you for some more information about the file. Modal is part of the same form element, but unless you click on the upload button is invisible
  3. Clicking on save in the file can be uploaded to the file "Action" attribute on the form page IFrame is voted every time a file is uploaded to see if its content has changed, then " Success "message appearing in iframe E gives. Since it belongs to the same domain, I lower the content inside the iframe.
  4. Once iframe says that the file has been uploaded, then I use the file to update the application using some JS

Since I can not use firebug in IE, I have to stick to using the Microsoft Web Developer toolbar, which makes it difficult to understand whether a bold step is actually happening, as it seems, Uploading file because it's just that file The file is interrupted by the download dialog.

Since there is no answer, I will post 'I found it okay. I suspect that this is correct, but this is the best solution I can come up with.


This proved to be an issue with voting in the form of suspicion. Fixes ended rather than output to JSN in IFrame, just output to some javascript, which calls the function that updates the main window. This simple


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -