Skip to content
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

Add onUploading for imageUploadFunction #588

Open
bilogic opened this issue May 4, 2024 · 0 comments
Open

Add onUploading for imageUploadFunction #588

bilogic opened this issue May 4, 2024 · 0 comments

Comments

@bilogic
Copy link

bilogic commented May 4, 2024

Is your feature request related to a problem? Please describe.
When remote server is slow and I paste/upload an image, there is no reaction in easyMDE and make users wonder if they did it correctly, some may try to paste again leading to double uploads

Describe the solution you'd like
Show a progress indicator like GitHub ![Uploading image.png…]() and replace it with the actual link thereafter.
From the code, I think it make sense to add onUploading and onUploaded if necessary, i.e.

imageUploadFunction: function(file, onSuccess, onError, onUploading) {
    // ... some validation
    onUploading("Uploading image.png...")

Describe alternatives you've considered
none

Additional context
none

@bilogic bilogic changed the title Add 'onUploading' for imageUploadFunction Add onUploading for imageUploadFunction May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant