summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-11 14:54:13 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-11 14:54:13 +0200
commit07ea57465ba23dd31dae943b44f4c04ccabb5e60 (patch)
tree3cc2057354b1faf949221d7c52117d580bc4add6 /apps/files_sharing/js/public.js
parent0edacf372c5b2e1f1b64210ceff5e757494c959b (diff)
downloadnextcloud-server-07ea57465ba23dd31dae943b44f4c04ccabb5e60.tar.gz
nextcloud-server-07ea57465ba23dd31dae943b44f4c04ccabb5e60.zip
drop folder support on public shared folders
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r--apps/files_sharing/js/public.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 9ce8985f1fd..ae2412f6a3b 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -62,11 +62,17 @@ $(document).ready(function() {
var file_upload_start = $('#file_upload_start');
file_upload_start.on('fileuploadadd', function(e, data) {
+ var fileDirectory = '';
+ if(typeof data.files[0].relativePath !== 'undefined') {
+ fileDirectory = data.files[0].relativePath;
+ }
+
// Add custom data to the upload handler
data.formData = {
requesttoken: $('#publicUploadRequestToken').val(),
dirToken: $('#dirToken').val(),
- subdir: $('input#dir').val()
+ subdir: $('input#dir').val(),
+ file_directory: fileDirectory
};
});