Correct me if I am wrong, but the file is uploaded to the webserver and form there to the cf server, the content of the file is not actually within the form scope?
> Don't understand what is "has implemented a global filtering system on the form scope". Maybe some explanation would be useful.
Loop over the form collection apply a regex to filter out chars on each itteration.
Main Topics
Browse All Topics





by: INSDivision6Posted on 2005-03-08 at 19:17:36ID: 13492645
Don't understand what is "has implemented a global filtering system on the form scope". Maybe some explanation would be useful.
lencoded" content type. Basically, this is name=value pairs joined in a single string. When you specify ENCTYTPE="multipart/form-d ata" in the FORM element, the from elements are being split into separate chunks. Chunks are delimited by a randomly generated (by browser) string that always contains "--" and <CR><LF>. Every chunk has a special header that indicates the name of the original field in the form. It also may contain additional info about the data: type, original file name, etc.
---------- ---------- ---------- ---------- ---------- -------
---------- ---------- ---------- ---------- ---------- ---------- ---
As about file upload, (actually, about "multipart/form-data" content type), the difference between "regular forms" and "file upload forms" that they use different method of transmitting data. First ones use "application/x-www-form-ur
Example of HTTP reuest that hits the server with one INPUT TYPE=TEXT and one INPUT TYPE=FILE (unrelated headers omitted):
--------------------------
Content-type: multipart/form-data, boundary=AaB03x
--AaB03x
content-disposition: form-data; name="user_name"
Joe Black
--AaB03x
content-disposition: form-data; name="pics"; filename="file1.txt"
Content-Type: text/plain
... contents of file1.txt ...
--AaB03x--
--------------------------
So, CF looks for the file data using the name of the form field. In the above case it is "pics". If you do something strange with "global filtering", you may alter the posted data in such a way that CF simply cannot split the data and/or find the data requested.