-
Notifications
You must be signed in to change notification settings - Fork 202
fix: enable file upload for push notifications #2679
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
ItzNotABug
merged 3 commits into
main
from
fix-SER-468-file-upload-for-push-notifications
Dec 10, 2025
Merged
Changes from all commits
Commits
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
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
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.
🧩 Analysis chain
🏁 Script executed:
# Find the filePicker.svelte file and read the relevant sections fd filePicker.svelte --type fRepository: appwrite/console
Length of output: 96
🏁 Script executed:
Repository: appwrite/console
Length of output: 2850
🏁 Script executed:
# Get the full file to understand context wc -l src/lib/components/filePicker.svelteRepository: appwrite/console
Length of output: 100
🏁 Script executed:
Repository: appwrite/console
Length of output: 4221
🏁 Script executed:
Repository: appwrite/console
Length of output: 2158
🏁 Script executed:
Repository: appwrite/console
Length of output: 973
🏁 Script executed:
# Check imports in filePicker.svelte to understand where Upload comes from head -n 50 src/lib/components/filePicker.svelteRepository: appwrite/console
Length of output: 2075
🏁 Script executed:
Repository: appwrite/console
Length of output: 42
🏁 Script executed:
Repository: appwrite/console
Length of output: 3657
🌐 Web query:
@appwrite.io/pink-svelte Upload.Dropzone extensions prop format documentation💡 Result:
I couldn't find official documentation for a pink-svelte Upload.Dropzone "extensions" prop at the URL you gave. Can you paste the exact page/repo link or a screenshot (or say whether you mean Appwrite's Pink UI repo or a different package)? I can then look up the exact prop format and examples.
🏁 Script executed:
Repository: appwrite/console
Length of output: 3424
🏁 Script executed:
Repository: appwrite/console
Length of output: 4024
🏁 Script executed:
# Let's check the entire filePicker.svelte structure - maybe smaller sections head -n 30 src/lib/components/filePicker.svelteRepository: appwrite/console
Length of output: 1034
🏁 Script executed:
Repository: appwrite/console
Length of output: 1328
🏁 Script executed:
Repository: appwrite/console
Length of output: 96
🏁 Script executed:
Repository: appwrite/console
Length of output: 96
🏁 Script executed:
Repository: appwrite/console
Length of output: 7376
🏁 Script executed:
Repository: appwrite/console
Length of output: 98
🏁 Script executed:
Repository: appwrite/console
Length of output: 107
🏁 Script executed:
Repository: appwrite/console
Length of output: 142
🏁 Script executed:
Repository: appwrite/console
Length of output: 90
🏁 Script executed:
Repository: appwrite/console
Length of output: 2479
🏁 Script executed:
Repository: appwrite/console
Length of output: 90
🏁 Script executed:
# Check the structure of the repo ls -laRepository: appwrite/console
Length of output: 2027
🏁 Script executed:
# List src directory ls -la src/Repository: appwrite/console
Length of output: 662
🏁 Script executed:
Repository: appwrite/console
Length of output: 7661
🏁 Script executed:
Repository: appwrite/console
Length of output: 410
🏁 Script executed:
Repository: appwrite/console
Length of output: 579
🏁 Script executed:
Repository: appwrite/console
Length of output: 71
🏁 Script executed:
Repository: appwrite/console
Length of output: 146
🏁 Script executed:
Repository: appwrite/console
Length of output: 662
🏁 Script executed:
Repository: appwrite/console
Length of output: 666
🏁 Script executed:
Repository: appwrite/console
Length of output: 4495
🏁 Script executed:
# Look at package.json to understand dependencies cat package.jsonRepository: appwrite/console
Length of output: 3596
🌐 Web query:
@appwrite.io/pink-svelte Upload Dropzone extensions prop expected format with/without dot💡 Result:
Short answer: use the leading dot (e.g. ".png", ".jpg"). This follows the HTML file input/accept spec and how Dropzone-style components commonly expect extensions. [1][2]
Sources
🏁 Script executed:
Repository: appwrite/console
Length of output: 42
🏁 Script executed:
Repository: appwrite/console
Length of output: 1356
🏁 Script executed:
Repository: appwrite/console
Length of output: 927
🏁 Script executed:
Repository: appwrite/console
Length of output: 714
Normalize extension format with leading dots and clarify wildcard notation in tooltip
The
extensionsprop should use leading dots per HTML input standards (e.g.,['.json']instead of['json']). Update line 361:Also improve the tooltip clarity at lines 380-382 to explicitly show wildcard notation:
This aligns with Upload.Dropzone expectations and gives users a clearer view of wildcard filtering (e.g., "image/*").
Also applies to: 380-382
🤖 Prompt for AI Agents