From 82ba42586cc9427b8a118c30462fc66d92cffecd Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 5 Oct 2014 01:18:50 -0700 Subject: add blueimp-jquery-file-upload library --- library/blueimp_upload/server/php/files/.gitignore | 3 +++ library/blueimp_upload/server/php/files/.htaccess | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 library/blueimp_upload/server/php/files/.gitignore create mode 100644 library/blueimp_upload/server/php/files/.htaccess (limited to 'library/blueimp_upload/server/php/files') diff --git a/library/blueimp_upload/server/php/files/.gitignore b/library/blueimp_upload/server/php/files/.gitignore new file mode 100644 index 000000000..e24a60fae --- /dev/null +++ b/library/blueimp_upload/server/php/files/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!.htaccess diff --git a/library/blueimp_upload/server/php/files/.htaccess b/library/blueimp_upload/server/php/files/.htaccess new file mode 100644 index 000000000..56689f0bb --- /dev/null +++ b/library/blueimp_upload/server/php/files/.htaccess @@ -0,0 +1,18 @@ +# The following directives force the content-type application/octet-stream +# and force browsers to display a download dialog for non-image files. +# This prevents the execution of script files in the context of the website: +ForceType application/octet-stream +Header set Content-Disposition attachment + + ForceType none + Header unset Content-Disposition + + +# The following directive prevents browsers from MIME-sniffing the content-type. +# This is an important complement to the ForceType directive above: +Header set X-Content-Type-Options nosniff + +# Uncomment the following lines to prevent unauthorized download of files: +#AuthName "Authorization required" +#AuthType Basic +#require valid-user -- cgit v1.2.3