Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

File plugin FileField should have meaningful help_text #1357

Closed
kezabelle opened this Issue · 2 comments

3 participants

Keryn Knight Jonas Obrist Patrick Lauber
Keryn Knight

Currently, the cms.plugins.file.models.File file upload field has no help text at all. As no max length has been declared, the field's default maximum string length is 100 for all database backends. Ideally it make sense to provide help text that thus documents the maximum filename length for any upload (minus the media path), but as get_media_path is a function that acts on a filename, I'm not sure how viable it is. Consider this ticket me asking cleverer people than I if it's plausible; if not, close as invalid/wontfix.

Jonas Obrist
Collaborator

The actual filename of the uploaded file is not necessarily related to the length of the string stored in the field if you use a non-standard file backend (eg: S3). Therefore I'm not sure we can come up with a reasonable generic help text.

Patrick Lauber
Collaborator

file plugin removed from core

Patrick Lauber digi604 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.