Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When we upload a file in a webform submission and download the file in Internet Explorer 6, junk data is displayed.
Drupal version : 5.3
Comment | File | Size | Author |
---|---|---|---|
#13 | webform_ie_export.patch | 1.16 KB | quicksketch |
#12 | webform_report_fix_ie.patch | 509 bytes | acrollet |
#4 | webform_file_headers.patch | 986 bytes | quicksketch |
Comments
Comment #1
quicksketchSounds like IE is displaying the contents of the file instead of downloading it. You can probably right click "Save As..." to work around the problem temporarily. What's the extension of the file you're trying to download?
Comment #2
priyar CreditAttribution: priyar commentedthe extensions of the file are 'doc'(MS Word document), 'xls'(MS Excel).Yes it displays junk data
Comment #3
priyar CreditAttribution: priyar commentedComment #4
quicksketchThis doesn't break any data and there's an easy work-around for the lingering users of IE6, this isn't critical. After looking at this, I realized that Webform is simply linking directly to the file, so this indicates that this is what IE6 is doing for ALL .xls and .doc files being downloaded (your particular system).
That is *unless* you have private downloads enabled (admin/settings/file-system). If so, it looks like Webform isn't setting any headers at all for files other than images. I've committed the attached patch which should fix this problem and force browsers to download non-image files.
Comment #5
priyar CreditAttribution: priyar commentedThank you. Its working....
Comment #6
Hallelujah H CreditAttribution: Hallelujah H commentedOK. Got it, thanks.
Comment #8
bigdave CreditAttribution: bigdave commentedHello,
I'm apologize if I re-opened this when it was too old. It's closed just less that 2 months ago.
I'm experiencing the issue described at http://drupal.org/node/377288 which
1) Referenced the issue was fixed in Webform 2.6
2) Marked as a duplicate
3) Reference to this issue
I'm unable to download the results file. I get the "Internet Explorer cannot download download from xxxx.xxxx. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
I'm on Drupal 5.10, Webform 2.6, Private Files, the whole site on SSL, on Internet Explorer 6 and 7. It works fine on Firefox.
I'm not a programmer but it does look like the webform.module does have the code shown in the patch...
Comment #9
Amir Simantov CreditAttribution: Amir Simantov commentedI am writing here, as well, to ask (probably Nathan) -
1. Why the forcing is not part of the module?
2. Is there a patch for newer versions?
Thanks!
Comment #10
skybow CreditAttribution: skybow commentedI ran into this problem today. My config:
Drupal 6.13, WebForms 2.7, Private Files / Download enabled, whole site on SSL, doesn't work with IE 6/8
Works find with FireFox / Safari
Comment #11
rjl CreditAttribution: rjl commentedYes, it happened to me again when I upgraded to the latest version of webform.
I was able to fix the problem same as before by adding this to the exporting function....
see http://drupal.org/node/377288 for write up of this resolution.
Comment #12
acrollet CreditAttribution: acrollet commentedI have experienced the same problem - drupal 6.14, webform 6.x-2.9. Attaching a patch with #11's solution that fixes the problem for us, tested with Safari and IE.
Comment #13
quicksketchWebform has a dedicated function for setting download headers, these should be added there. I've committed the attached patch that adds these headers.
Comment #15
ngmaloney CreditAttribution: ngmaloney commentedAny idea of if/when the #13 patch will be included with module? We are having the cache-expire issue on later versions of IE too.
Comment #16
ryo CreditAttribution: ryo commentedComment #17
quicksketch#13 is already included in the module, a new release just needs to be made.
Comment #18
quicksketchComment #19
jdwfly CreditAttribution: jdwfly commented+1 for a new release.