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 option to remove spaces from uploads filename #176

Open
bfrangi opened this issue Jun 25, 2023 · 1 comment
Open

Add option to remove spaces from uploads filename #176

bfrangi opened this issue Jun 25, 2023 · 1 comment

Comments

@bfrangi
Copy link

bfrangi commented Jun 25, 2023

Hello, great work with this mdeditor package. I've been using this to write html emails for a django website and have recently run into this problem with sending images in the emails. After testing several possible causes, I've narrowed the problem down to the fact that my images, uploaded by mdeditor, have spaces in their filenames. I see that the image uploads are handled in the UploadView, and the filename is specified in this line of code. Would it be possible to add a configuration option to MDEDITOR_CONFIGS that enables removal of spaces (or replacement by some other characters) on upload? This would be very helpful, as right now this problem limits the functionality of the editor.

Happy to help with this if needed.

@pylixm
Copy link
Owner

pylixm commented Jun 25, 2023 via email

@bfrangi bfrangi changed the title Add option to remove spaces from filename Add option to remove spaces from uploads filename Jun 25, 2023
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

2 participants