1
1
<?php
2
2
/*
3
- * jQuery File Upload Plugin PHP Class 5.19
3
+ * jQuery File Upload Plugin PHP Class 5.19.1
4
4
* https://github.com/blueimp/jQuery-File-Upload
5
5
*
6
6
* Copyright 2010, Sebastian Tschan
@@ -59,8 +59,7 @@ function __construct($options = null, $initialize = true) {
59
59
'access_control_allow_headers ' => array (
60
60
'Content-Type ' ,
61
61
'Content-Range ' ,
62
- 'Content-Disposition ' ,
63
- 'Content-Description '
62
+ 'Content-Disposition '
64
63
),
65
64
// Enable to provide file downloads via GET requests to the PHP script:
66
65
'download_via_php ' => false ,
@@ -678,8 +677,6 @@ public function post($print_response = true) {
678
677
'' ,
679
678
$ _SERVER ['HTTP_CONTENT_DISPOSITION ' ]
680
679
)) : null ;
681
- $ file_type = isset ($ _SERVER ['HTTP_CONTENT_DESCRIPTION ' ]) ?
682
- $ _SERVER ['HTTP_CONTENT_DESCRIPTION ' ] : null ;
683
680
// Parse the Content-Range header, which has the following form:
684
681
// Content-Range: bytes 0-524287/2000000
685
682
$ content_range = isset ($ _SERVER ['HTTP_CONTENT_RANGE ' ]) ?
@@ -694,7 +691,7 @@ public function post($print_response = true) {
694
691
$ upload ['tmp_name ' ][$ index ],
695
692
$ file_name ? $ file_name : $ upload ['name ' ][$ index ],
696
693
$ size ? $ size : $ upload ['size ' ][$ index ],
697
- $ file_type ? $ file_type : $ upload ['type ' ][$ index ],
694
+ $ upload ['type ' ][$ index ],
698
695
$ upload ['error ' ][$ index ],
699
696
$ index ,
700
697
$ content_range
@@ -709,8 +706,8 @@ public function post($print_response = true) {
709
706
$ upload ['name ' ] : null ),
710
707
$ size ? $ size : (isset ($ upload ['size ' ]) ?
711
708
$ upload ['size ' ] : $ _SERVER ['CONTENT_LENGTH ' ]),
712
- $ file_type ? $ file_type : ( isset ($ upload ['type ' ]) ?
713
- $ upload ['type ' ] : $ _SERVER ['CONTENT_TYPE ' ]) ,
709
+ isset ($ upload ['type ' ]) ?
710
+ $ upload ['type ' ] : $ _SERVER ['CONTENT_TYPE ' ],
714
711
isset ($ upload ['error ' ]) ? $ upload ['error ' ] : null ,
715
712
null ,
716
713
$ content_range
0 commit comments