diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-11 14:54:13 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-11 14:54:13 +0200 |
commit | 07ea57465ba23dd31dae943b44f4c04ccabb5e60 (patch) | |
tree | 3cc2057354b1faf949221d7c52117d580bc4add6 /apps/files_sharing/js/public.js | |
parent | 0edacf372c5b2e1f1b64210ceff5e757494c959b (diff) | |
download | nextcloud-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.js | 8 |
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 }; }); |