-
Notifications
You must be signed in to change notification settings - Fork 109
Insert images from local device (or link) #1900
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
63 commits
Select commit
Hold shift + click to select a range
ba3fc84
begin to implement local image insertion, UI almost done
ab99206
basic upload ok
bc2e4d3
improve basic upload
477573d
create /Text if needed
b7234c0
insert link working
48e9828
loading animation when inserting image link or uploading image
361f265
show errors
cb463ea
fix link input reset issue
a103b98
upload image file via Text API call for more flexibility in saved fil…
7267f0b
display/upload/add-link works with attachment folder in user context
849b4f0
identify image by name instead of id in text file content
05098ce
serve attached images to public links
761d0dd
public upload/link-insertion almost done, issue with missing fileId i…
f3f03cf
fix upload/link-dl in single file share edition, get it from upload r…
7fde881
fix share link permissions check
6916b96
add user share permissions check
1fedc8f
cleanup server side stuff
09552de
check mime type on upload (client and server side)
b1fe365
provide content-type header when serving images
1b33096
serve image previews
c3a8e5d
hide image link input when closing image action popup
a541ad9
fix function naming
39114e0
rename menu items
65c69ff
change attachment folder name to .attachments.FILE_ID
2f6a92b
use attachment folder when inserting image from Files
340f788
avoid exposing exception msg to user
19d014b
provide preview only if mime type is supported
54ff445
add annotation
94572f8
remove useless path attribute in insert/upload response
f1c25a8
fix image serve endpoints
4e074e7
address review comments
f3b1559
psalm issues
ed48dcf
php-cs checks
fc56680
store file id (instead of name) in markdown image links, cleanup atta…
551729e
implement auto attachment management for file deletion/move/copy
cb42dae
fix php7.3 compat
0762feb
add class to image <actions>
a2fcb4d
fix moveAttachments in shared context (single file and directory share)
3e68770
small fixes
6245dd2
attempt to fix file copy
014d081
forgot something while solving rebase conflicts
4f54f4d
make image upload endpoints public and use session token to authenticate
32c0a37
use image file name instead of file ID in content links
81aebee
use Vuex to store current session and get it in the ImageView component
ed2f474
adjustments after rebase
b4b4f1d
fix stuff after PR comments
3905852
fix other stuff after PR comments
dc710f7
fix other stuff after PR comments
9b1c396
factorize getAttachmentDirectoryForFile and getOrCreateAttachmentDire…
2f23e2d
remove Unnecessary else
cde5784
fix stuff after PR comments
29b7e0f
stop returning null in getAttachmentDirectoryForFile, use exceptions …
d64bb66
remove unused param in simpleDownload
8794427
return 403 when session is invalid
7eaf9d6
add check on uploaded image
ef8358b
stream uploaded file to the storage with a resource
6ba9da8
safely get image mimetype
dc92e02
allow image upload/link-insertion with email links and from a Talk room
e628527
improve image link generation and getAttachmentNamesFromContent(), im…
f65698a
use specific exception on upload error
342952d
fix some CI errors
1f9cef4
add basic tests for ImageView.vue
dea3a59
fix some psalm false positives
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
loading animation when inserting image link or uploading image
Signed-off-by: Julien Veyssier <[email protected]>
- Loading branch information
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
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.
Uh oh!
There was an error while loading. Please reload this page.