Joe,

I've seen this problem before.  From the info I could find in a quick
search (and my short memory) it has something to do with file extensions
on a mac (especially before OSX).  Apparently, if you specify an
incorrect path or name in the file upload field (try typing one in by
hand and deliberately make it incorrect) your browser will actually try
to send the file to CF but when it gets there it's an empty file because
it never existed on the client's machine.  I think that if users add on
file extensions to the file names (ie. MyWordDocument.doc) where on a
Mac it would normally just be called MyWordDocument that will fix it.
Or maybe it's the opposite.  Do a google search for "No data was
received in the uploaded file" and you'll find some results of people
having the same issues.  I hope that helps.


John Burns
Certified Advanced ColdFusion MX Developer
AI-ES Aeronautics, Web Developer

-----Original Message-----
From: joe hobson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 04, 2005 12:10 PM
To: CF-Talk
Subject: Saving empty (zero-length) files is prohibited.

I've had many errors thrown, since upgrading to CFMX, when uploading a
file. The error looks something like this... 

No data was received in the uploaded file "NatGeo.webloc".
Saving empty (zero-length) files is prohibited.
Verify that you specified the correct file.

I took a look at the open source ColdFusion File Manager demo
(http://www.webworksllc.com/cffm/cffm.cfm) and noticed that there's
doesn't throw an error with the same file. Further research showed that
it's probably because they're on Linux, while i'm on IIS/Win2k. I
downloaded their code to my IIS box and it threw the same error.

This file is on a Mac, and the Finder shows that it has 462 bytes. The
terminal shows it as zero bytes though. My guess would be due to some
sort of resource fork or other Mac weirdness. But the error is not
simply on Macs. I have had users on WinNT 4 and 5 using IE to upload
Word docs when it threw the same error. Could it be an open file issue,
or locked file, or some other craziness?

On the server side this is a file system issue. CF5 didn't throw the
error when i uploaded that file, it simply thinks that i didn't upload a
file at all. Anyone have a solution for this, other than simple error
catching? 

thanks. ... .joe



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189300
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to