| 197 | | A file-upload field. |
|---|
| 198 | | |
|---|
| 199 | | Has an extra required argument, ``upload_to``, a local filesystem path to |
|---|
| 200 | | which files should be upload. This path may contain `strftime formatting`_, |
|---|
| 201 | | which will be replaced by the date/time of the file upload (so that |
|---|
| 202 | | uploaded files don't fill up the given directory). |
|---|
| 203 | | |
|---|
| 204 | | The admin represents this as an ``<input type="file">`` (a file-upload widget). |
|---|
| | 197 | A file-upload field. Has one **required** argument: |
|---|
| | 198 | |
|---|
| | 199 | ====================== =================================================== |
|---|
| | 200 | Argument Description |
|---|
| | 201 | ====================== =================================================== |
|---|
| | 202 | ``upload_to`` A local filesystem path that will be appended to |
|---|
| | 203 | your ``MEDIA_ROOT`` setting to determine the |
|---|
| | 204 | output of the ``get_<fieldname>_url()`` helper |
|---|
| | 205 | function. |
|---|
| | 206 | ====================== =================================================== |
|---|
| | 207 | |
|---|
| | 208 | This path may contain `strftime formatting`_, which will be replaced by the |
|---|
| | 209 | date/time of the file upload (so that uploaded files don't fill up the given |
|---|
| | 210 | directory). |
|---|
| | 211 | |
|---|
| | 212 | The admin represents this field as an ``<input type="file">`` (a file-upload |
|---|
| | 213 | widget). |
|---|