mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #2294] [FR] Handle incorrect image url #956
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#956
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @annieappflowy on GitHub (Apr 19, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2294
Originally assigned to: @Xazin on GitHub.
Description
I should not be allowed to upload an image via an incorrect url

Impact
Users who insert images using URLs
Additional Context
No response
@AdiAr11 commented on GitHub (Jul 17, 2023):
Hi, does this issue still need to be fixed? I can work on it if its still need to be fixed. Thank you
@LucasXu0 commented on GitHub (Jul 17, 2023):
@AdiAr11 yes. Assigned it to you.
@AdiAr11 commented on GitHub (Jul 17, 2023):
@LucasXu0 Thank you !!
@AdiAr11 commented on GitHub (Jul 17, 2023):
Hi @LucasXu0 , i found the callback for when the image url is not found in image_selection_menu.dart file. could you please tell me where the code for this dialog is?
I am thinking I would add a bool variable 'isUrlValid' in a provider class and change it to true if url is not valid and in catch block of the above mentioned file. then i would listen to the change in this bool value and display the 'Incorrect Link' text in the dialog.
Please let me know if you think it there is a better approach or something else that needs to be changed. Thanks
@LucasXu0 commented on GitHub (Jul 18, 2023):
@AdiAr11. Your approach sounds good to me. The code is located in
image_upload_widget.dart, and you should submit the PR to this repo.@AdiAr11 commented on GitHub (Jul 18, 2023):
@LucasXu0 @annieappflowy Created a PR in this mentioned repo :)
@annieappflowy commented on GitHub (Nov 5, 2023):
Did you manage to get it merged, @AdiAr11 ?
@AdiAr11 commented on GitHub (Nov 5, 2023):
@annieappflowy yes, that pr has been merged.
@annieappflowy commented on GitHub (Nov 6, 2023):
@AdiAr11 , I can see that it would show "invalid image" after pressing "Enter"
Ideally, it should stay in the upload panel while showing "invalid image link". This way I can fix the image link right away.
@AdiAr11 commented on GitHub (Dec 3, 2023):
@annieappflowy sorry, I somehow missed your last comment.
https://github.com/AppFlowy-IO/appflowy-editor/pull/324
In this PR, the popup stays while showing "Incorrect link".
@annieappflowy commented on GitHub (Dec 24, 2023):
todo: handle it in the menu without clicking the button
