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

Missing filename extension after saving pptx document #64

Open
ggaspa opened this issue Jul 29, 2024 · 0 comments
Open

Missing filename extension after saving pptx document #64

ggaspa opened this issue Jul 29, 2024 · 0 comments

Comments

@ggaspa
Copy link

ggaspa commented Jul 29, 2024

After saving a pptx file, I noticed that no extension was present on downloaded file.

On file utils.py - from row 26 to 31

# Rename the file to the provided name, if any. Attempt to preserve the file extension.
    extension = filename.rsplit('.')[-1].lower()
    if instance.name and extension in ['bmp', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'txt', 'doc', 'docx', 'xls', 'xlsx', 'xlsm', 'tif', 'tiff']:
        filename = '.'.join([instance.name, extension])
    elif instance.name:
        filename = instance.name

I see that only specific list of extension is supported. Why?

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