Accessing content of a file-upload via form.xyz directly
Hi!
We're in the process of migrating from CF5 to CF9 and staggered over the following problem:
Consider a simple HTML form with a file-type input:
<form action="Something.cfm" method="POST" enctype="multipart/form-data">
<input type="file" name="request">
...
</form>
On the server-side we accessed the content of the uploaded file via "#form.request#". Under CF5, the value of the form variable "form.request" was indeed the content of the uploaded file, as long as the file extension was ".txt", which lead to a "Content-Type: text/plain". Und CF9, the value of the form variable "form.request" is always the path of a temporary file on the server.
My questions:
(1)
Is there a way to tell CF9 that it should not create a temporary file and put the content always in the "form.request" variable n case the content is of type text/plain?
(2)
What is the use of the CFFILE tag in this context, if ColdFusion creates (temporary?) files for uploaded files by itself? I think I'm missing something obvious here...
Kind regards
Daniel
