OK , as you guys suggested I've Tried

FILEFIELD="Trim(FileContents)" and this
FILEFIELD="Trim(FileContents)" and this
FILEFIELD="Trim(form.FileContents)" and this
FILEFIELD="#Trim(FileContents)#" and this
FILEFIELD="#Trim(form.FileContents)#" and this
FILEFIELD="#StripCr(form.FileContents)#" etc...

and unsurprisingly I get this CF error :

"In order to upload a file from a form submission you must specify a
FILEFIELD attribute to indicate which form field contains the uploaded file.
This attribute must be a form field name.

For example, if the input file containing the uploaded file is named
'FileContents' you would use the syntax: FILEFIELD="FileContents" "

So where am I going wrong?

Of course FILEFIELD="FileContents" works but I end up with the first issue.

I've attached the 2 raw mail files generated:

netscape.txt -> done with netscape6 on Mac
ie5.txt ->  done with ie5 on Mac

I've also diff'd  the two raw files that are attached after being uploaded
(Test.rtf) and /YES/ as expected the files uploaded by Mac IE5 contain a
extra newline at the end of the file.

My question is why would this break the BASE64 encode in  cfx_imsmail?
I can use the cf funtion ToBase64() to convert the original Mac file ,
newlines and all. I /can/ of course strip the final newline from Mac
uploaded files to make it work, but I was wondering /why/ the extra newline
breaks it.
I can't seem to find the source code for cfx_imsmail anywhere..

Thanks

Justin

Btw the we have 1000's of files uploaded to our site each day by Mac/IE5
users, which are downloaded via cfcontent to pc and mac users without a
problem. I know about the fields getting CR added in Mac IE5  and the issue
of empty <input type=file..> fields and also the one about any form elements
after <input type=file..> in Netscape 6 + getting ignored, (fixed in Moz
9.9+ / RC1 ) .....


> Subject: RE: [iMS] Cfx_imsmail / attachments / and Apple Mac IE5
> >
> >FILEFIELD="StripCR(FileContents)" or  FILEFIELD="Trim(FileContents)"
>
> AFAIK, either will work, but I stick with Trim() 'cos it avoids other
> potential problems too
>
>
> Mark
>

==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [email protected]
==^=======================================================

FROM: [EMAIL PROTECTED]
Messageid: [EMAIL PROTECTED]
SUBJECT: this is the test mail
TO: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="1019740367CoolFusion.com=="
Content-Transfer-Encoding: 7bit
Date: Thu, 25 Apr 2002 13:12:47 -0400


--1019740367CoolFusion.com==
Content-Type: text/plain; charset="us-ascii"

message body

--1019740367CoolFusion.com==--

.
==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [email protected]
==^=======================================================

FROM: [EMAIL PROTECTED]
Messageid: [EMAIL PROTECTED]
SUBJECT: this is the test mail
TO: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="1019740878CoolFusion.com=="
Content-Transfer-Encoding: 7bit
Date: Thu, 25 Apr 2002 13:21:18 -0400


--1019740878CoolFusion.com==
Content-Type: text/plain; charset="us-ascii"

message body


--1019740878CoolFusion.com==
Content-type: application/octet-stream; name="Test.rtf"
Content-Disposition: attachment; filename="Test.rtf"
Content-Transfer-Encoding: base64

e1xydGYxXG1hY1xhbnNpY3BnMTAwMDBcdWMxIFxkZWZmNFxkZWZsYW5nMTAz
M1xkZWZsYW5nZmUxMDMze1x1cHJ7XGZvbnR0Ymx7XGYwXGZuaWxcZmNoYXJz
ZXQyNTZcZnBycTJ7XCpccGFub3NlIDAyMDIwNjAzMDUwNDA1MDIwMzA0fVRp
bWVzIE5ldyBSb21hbjt9e1xmNFxmbmlsXGZjaGFyc2V0MjU2XGZwcnEye1wq
XHBhbm9zZSAwMjAwMDUwMDAwMDAwMDAwMDAwMH1UaW1lczt9DX17XCpcdWR7
XGZvbnR0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Y1xwbnN0YXJ0MVxwbmlu
ZGVudDcyMFxwbmhhbmd7XHBudHh0YiAofQ17XHBudHh0YSApfX17XCpccG5z
ZWNsdmw2XHBubGNsdHJccG5zdGFydDFccG5pbmRlbnQ3MjBccG5oYW5ne1xw
bnR4dGIgKH17XHBudHh0YSApfX17XCpccG5zZWNsdmw3XHBubGNybVxwbnN0
YXJ0MVxwbmluZGVudDcyMFxwbmhhbmd7XHBudHh0YiAofXtccG50eHRhICl9
fXtcKlxwbnNlY2x2bDhccG5sY2x0clxwbnN0YXJ0MVxwbmluZGVudDcyMFxw
bmhhbmd7XHBudHh0YiAofXtccG50eHRhICl9fXtcKlxwbnNlY2x2bDkNXHBu
bGNybVxwbnN0YXJ0MVxwbmluZGVudDcyMFxwbmhhbmd7XHBudHh0YiAofXtc
cG50eHRhICl9fVxwYXJkXHBsYWluIFx3aWRjdGxwYXJcYXNwYWxwaGFcYXNw
bnVtXGZhYXV0b1xhZGp1c3RyaWdodFxyaW4wXGxpbjBcaXRhcDAgXGY0XGxh
bmcyMDU3XGNncmlkIHtUaGlzIGlzIHRoZSB0ZXN0IGZpbGUgY29udGVudFx1
ODIzMFwnYzkNXHBhciB9fQ==

--1019740878CoolFusion.com==--

.

==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [email protected]
==^=======================================================

Reply via email to