Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 5954ff7

Browse files
committed
Added "Content-Disposition: inline" header, to make sure IE does not offer a download dialog for the JSON response. Fixes #235.
1 parent f65ccca commit 5954ff7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/upload.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* jQuery File Upload Plugin PHP Example 5.2.1
3+
* jQuery File Upload Plugin PHP Example 5.2.2
44
* https://github.com/blueimp/jQuery-File-Upload
55
*
66
* Copyright 2010, Sebastian Tschan
@@ -295,6 +295,7 @@ public function delete() {
295295

296296
header('Pragma: no-cache');
297297
header('Cache-Control: private, no-cache');
298+
header('Content-Disposition: inline; filename="files.json"');
298299

299300
switch ($_SERVER['REQUEST_METHOD']) {
300301
case 'HEAD':

0 commit comments

Comments
 (0)