-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
add "hide file list" option #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bb54ab0
add hide file list option
schiessle 66d8536
block webdav access if share is not readable
schiessle 075bf73
Prevent access to shareinfo if share if read-only
LukasReschke 53ba111
Fix XSS
LukasReschke 5fdde42
Add fancy layout
LukasReschke 6e99b0f
Make uploading possible via select and cleanup CSS
LukasReschke e878e78
Fix public upload for normal shares
LukasReschke 0b00a06
Fix indentation
LukasReschke c268ad1
Add PHP unit test
LukasReschke c49402d
Add some error handling
LukasReschke 54e2ac5
Add text about uploaded files
LukasReschke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make uploading possible via select and cleanup CSS
- Loading branch information
commit 6e99b0f59d3b0278c45d42dcec01ff554a89d979
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,24 +15,33 @@ | |
| // Prevent the default browser drop action: | ||
| e.preventDefault(); | ||
| }); | ||
| $('#publicUploadDiv').fileupload({ | ||
| $('#public-upload').fileupload({ | ||
| url: OC.linkTo('files', 'ajax/upload.php'), | ||
| dataType: 'json', | ||
| //maxFileSize: fileUploadContainer.data('maxupload'), | ||
| messages: { | ||
| maxFileSize: t('files_sharing', 'File is bigger than allowed.') | ||
| }, | ||
| dropZone: $('#publicUploadDiv'), | ||
| dropZone: $('#public-upload'), | ||
| formData: { | ||
| dirToken: $('#sharingToken').val() | ||
| }, | ||
| add: function(e, data) { | ||
| _.each(data['files'], function(file) { | ||
| $('#public-upload ul').append('<li data-name="'+escapeHTML(file.name)+'"><span class="icon-loading-small"></span> '+escapeHTML(file.name)+'</li>'); | ||
| }); | ||
| data.submit(); | ||
| }, | ||
| success: function (response) { | ||
| var mimeTypeUrl = OC.MimeType.getIconUrl(response['mimetype']); | ||
| $('#public-upload ul li[data-name="'+escapeHTML(response['filename'])+'"]').html('<img src="'+escapeHTML(mimeTypeUrl)+'"/> '+escapeHTML(response['filename'])); | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. error handling? |
||
| }); | ||
|
|
||
| $('#public-upload .button.icon-upload').click(function(e) { | ||
| e.preventDefault(); | ||
| $('#public-upload #emptycontent input').focus().trigger('click'); | ||
| }); | ||
| } | ||
| }; | ||
|
|
||
| $(document).ready(function() { | ||
| if($('#uploadOnlyInterface').val() === "1") { | ||
| if($('#upload-only-interface').val() === "1") { | ||
| $('.avatardiv').avatar($('#sharingUserId').val(), 128, true); | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
template?