Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

*_file_name attribute without extension #2705

Open
SamarthMayya opened this issue Oct 18, 2022 · 0 comments
Open

*_file_name attribute without extension #2705

SamarthMayya opened this issue Oct 18, 2022 · 0 comments

Comments

@SamarthMayya
Copy link

When a model has a Paperclip attachment attached to it, a column named <attachment_name>_file_name is created in the model. Is is possible for a record to not have the file extension in this column when saved? For instance, suppose the attachment is document. Then the corresponding column in the database would be document_file_name. Can the value of this column be something like Report, instead of something like Report.pdf? If it was saved as the former, is there a way to serve this file with the extension?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant