aboutsummaryrefslogtreecommitdiffstats
path: root/library/jqupload/cors
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-10-23 00:12:36 +0000
committerMario <mario@mariovavti.com>2018-10-23 13:23:18 +0200
commit506ea713025ecec89dafea47125678201ea85cf6 (patch)
treedf82c7e1104a2155b4afa92ddafa3b8d47c46612 /library/jqupload/cors
parentc7ebb4b009857159d77b71675336ab97016b99e8 (diff)
downloadvolse-hubzilla-506ea713025ecec89dafea47125678201ea85cf6.tar.gz
volse-hubzilla-506ea713025ecec89dafea47125678201ea85cf6.tar.bz2
volse-hubzilla-506ea713025ecec89dafea47125678201ea85cf6.zip
for whatever reason there were two of these
(cherry picked from commit 7ed197f46b189601ac043f4bfeab41204a43488b)
Diffstat (limited to 'library/jqupload/cors')
-rw-r--r--library/jqupload/cors/postmessage.html75
-rw-r--r--library/jqupload/cors/result.html24
2 files changed, 0 insertions, 99 deletions
diff --git a/library/jqupload/cors/postmessage.html b/library/jqupload/cors/postmessage.html
deleted file mode 100644
index 3d1448f08..000000000
--- a/library/jqupload/cors/postmessage.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE HTML>
-<!--
-/*
- * jQuery File Upload Plugin postMessage API 1.2.1
- * https://github.com/blueimp/jQuery-File-Upload
- *
- * Copyright 2011, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- */
--->
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<title>jQuery File Upload Plugin postMessage API</title>
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
-</head>
-<body>
-<script>
-/*jslint unparam: true, regexp: true */
-/*global $, Blob, FormData, location */
-'use strict';
-var origin = /^http:\/\/example.org/,
- target = new RegExp('^(http(s)?:)?\\/\\/' + location.host + '\\/');
-$(window).on('message', function (e) {
- e = e.originalEvent;
- var s = e.data,
- xhr = $.ajaxSettings.xhr(),
- f;
- if (!origin.test(e.origin)) {
- throw new Error('Origin "' + e.origin + '" does not match ' + origin);
- }
- if (!target.test(e.data.url)) {
- throw new Error('Target "' + e.data.url + '" does not match ' + target);
- }
- $(xhr.upload).on('progress', function (ev) {
- ev = ev.originalEvent;
- e.source.postMessage({
- id: s.id,
- type: ev.type,
- timeStamp: ev.timeStamp,
- lengthComputable: ev.lengthComputable,
- loaded: ev.loaded,
- total: ev.total
- }, e.origin);
- });
- s.xhr = function () {
- return xhr;
- };
- if (!(s.data instanceof Blob)) {
- f = new FormData();
- $.each(s.data, function (i, v) {
- f.append(v.name, v.value);
- });
- s.data = f;
- }
- $.ajax(s).always(function (result, statusText, jqXHR) {
- if (!jqXHR.done) {
- jqXHR = result;
- result = null;
- }
- e.source.postMessage({
- id: s.id,
- status: jqXHR.status,
- statusText: statusText,
- result: result,
- headers: jqXHR.getAllResponseHeaders()
- }, e.origin);
- });
-});
-</script>
-</body>
-</html> \ No newline at end of file
diff --git a/library/jqupload/cors/result.html b/library/jqupload/cors/result.html
deleted file mode 100644
index 225131495..000000000
--- a/library/jqupload/cors/result.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE HTML>
-<!--
-/*
- * jQuery Iframe Transport Plugin Redirect Page 2.0.1
- * https://github.com/blueimp/jQuery-File-Upload
- *
- * Copyright 2010, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- */
--->
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<title>jQuery Iframe Transport Plugin Redirect Page</title>
-</head>
-<body>
-<script>
-document.body.innerText=document.body.textContent=decodeURIComponent(window.location.search.slice(1));
-</script>
-</body>
-</html>