Skip to content

Commit 7433895

Browse files
committed
Added OPTIONS request support - Fixes blueimp#590.
Thanks to Dimitris (lookfwd) for this contribution.
1 parent fa25106 commit 7433895

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/upload.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* jQuery File Upload Plugin PHP Example 5.2.4
3+
* jQuery File Upload Plugin PHP Example 5.2.5
44
* https://github.com/blueimp/jQuery-File-Upload
55
*
66
* Copyright 2010, Sebastian Tschan
@@ -309,6 +309,8 @@ public function delete() {
309309
case 'DELETE':
310310
$upload_handler->delete();
311311
break;
312+
case 'OPTIONS':
313+
break;
312314
default:
313315
header('HTTP/1.0 405 Method Not Allowed');
314316
}

0 commit comments

Comments
 (0)