mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #3526] [Bug] Upload new cover "Invalid url" #1596
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#1596
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 @Xazin on GitHub (Sep 25, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3526
Originally assigned to: @amgenene on GitHub.
Bug Description
When trying to upload a cover by URL, I get the error "Invalid URL".
How to Reproduce
https://cdn.britannica.com/29/529-050-6B31311A/Angora-goat.jpgAddExpected Behavior
https://cdn.britannica.com/29/529-050-6B31311A/Angora-goat.jpgAddOperating System
MacOS
AppFlowy Version(s)
0.3.2
Screenshots
Additional Context
No response
@duckcommit commented on GitHub (Sep 29, 2023):
@Xazin Hey, could you please tell me where this file is located? Having trouble finding the function. I could try to fix this bug.
@Xazin commented on GitHub (Sep 29, 2023):
Hey Duckcommit, you can use the Widget inspector to quickly locate widgets, which also leads to their respective onPressed/onTap functions.
See
appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dartline 232, it will lead you to line 68 where the cover picker is.appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart@amgenene commented on GitHub (Oct 2, 2023):
Hey @Xazin is this still an issue? When I add the photo to Change Cover function I am seeing the picture of a goat.

and then you need to Save the file to the Gallery, and from there it will apply that to be the cover. One thing I'm seeing in the code that may be an issue _getPreviouslyPickedImagePaths function. The reason I think there is an issue here is because when I added that goat image as the cover locally, then went to change the cover to something else, and then wanted to change the cover again the function _getPreviouslyPickedImagePaths led me to believe that there would an option to pick the goat image that I had previously uploaded as the new cover, but that was not the case, please let me know if the issue I just pointed out is a bug or not. @duckcommit
@Xazin commented on GitHub (Oct 2, 2023):
What you explained should be a different bug, if you can fix it then we'd be very happy as well.
It's where an uploaded image does not "show up" in the cover library, but it does exist, (you can delete it), but the thumbnail isn't displaying.
@amgenene commented on GitHub (Oct 2, 2023):
Just to make sure I understand and we are on the same page before I take a stab at this for the picture above the trash icon I circled, and the clear all works, but you are saying it doesn't exist in the "cover library" (or in other words the area I highlighted yellow)?
@amgenene commented on GitHub (Oct 2, 2023):
@Xazin
@Xazin commented on GitHub (Oct 2, 2023):
When adding an image there, to the right of the
+button where you click to add an image, there should be the thumbnail of the image you just uploaded.When hovering there after uploading an image, you can see the
Trashicon-button to delete that specific image, but as you can see the thumbnails don't show up in your version.@amgenene commented on GitHub (Oct 2, 2023):
@Xazin Ahh ok gotcha I understand now can I be assigned this issue?
@Xazin commented on GitHub (Oct 2, 2023):
Assigned
@amgenene commented on GitHub (Oct 3, 2023):
@Xazin I had some interesting findings, firstly for macOs I was having some issues consistently running the project because it was complaining about the MACOSXDEPLOYMENTTARGET being 10.11 when the project was only targeting 10.13+ another thing that was peculiar is that after updated my computer's software and I locally ran a dart fix --dry-run and then dart fix --apply I didn't see the bug anymore even after I attempted to git restore all of my files can you also make sure that your machine is up to date and let me know if you see the same issues I may try re-pulling the code and try to see if I can reproduce the issue
@Xazin commented on GitHub (Oct 3, 2023):
That is just a warning, it doesn't cause the build to fail. I know because I see it everyday...