internalRequest file upload support

Description

rather than make the form argument too complicated, lets add an additional argument files, which supports an array of structs,

following the pattern of https://docs.lucee.org/reference/tags/httpparam.html type=”file”

_internalRequest( template: "/test/upload.cfm", method: "POST", // throw if files defined with content and not POST form: { name: "John Citizen", role: "crash test dummy" }, files: { intro: { file: "/path/tofile.text", mimeType: "plain/text" }, resume: { file: "/path/resume.doc", mimeType: "application/msword" } } // automatically sets the enctype to 'multipart/form-data' ? )

Activity

Show:

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 13 January 2023 at 11:08
Updated 13 January 2023 at 11:11

Flag notifications