updatefield parameter to the upload script. If set and if the value matches the name of a form field, it will update that form field with the name of the uploaded file.
<form name="main" enctype="multipart/form-data" action="%SCRIPTURL{upload}%/%WEB%/%TOPIC%" method="post" />
__Upload new picture:__ %BR%
<input type="file" name="filepath" value="" size="36" />
<input type="submit" class="twikiSubmit" value='Upload' />
<input type="hidden" name="filename" value="" />
<input type="hidden" name="filecomment" value="" />
<input type="hidden" name="createlink" value="" />
<input type="hidden" name="hidefile" value="on" />
<input type="hidden" name="updatefield" value="Image" />
</form>
| ChangeProposalForm | |
|---|---|
| TopicClassification | FeatureRequest |
| TopicSummary | Set form field on file upload (for better usability of profile picture upload) |
| CurrentState | MergedToCore |
| CommittedDeveloper | PeterThoeny |
| ReasonForDecision | AcceptedBy7DayFeedbackPeriod |
| DateOfCommitment | 2011-06-07 |
| ConcernRaisedBy | |
| BugTracking | TWikibug:Item6747 |
| OutstandingIssues | |
| RelatedTopics | |
| InterestedParties | |
| ProposedFor | IstanbulRelease |
| TWikiContributors | PeterThoeny |