Skip to content

Commit

Permalink
Added nosniff header to prevent IE download dialogs.
Browse files Browse the repository at this point in the history
Thanks to Don Bowden for the hint.
  • Loading branch information
blueimp committed Jul 28, 2011
1 parent 1bea420 commit 598194f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/upload.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* jQuery File Upload Plugin PHP Example 5.2.2
* jQuery File Upload Plugin PHP Example 5.2.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -296,6 +296,7 @@ public function delete() {
header('Pragma: no-cache');
header('Cache-Control: private, no-cache');
header('Content-Disposition: inline; filename="files.json"');
header('X-Content-Type-Options: nosniff');

switch ($_SERVER['REQUEST_METHOD']) {
case 'HEAD':
Expand Down

0 comments on commit 598194f

Please sign in to comment.