RE: Saving empty (zero-length) files is prohibited.
Right, but if for some reason your File browse window can find the file, but then when it puts the path into the filefield textbox, maybe the browser is getting tripped up on something in the filename when it's in a formfield. It just sounds like from the posts I read on a couple of boards yielded from a quick search seemed to point at the fact that for one reason or another, the browser was not actually sending any data for the file and it seems to go back to the path. Perhaps there are invalid characters or something. John Burns Certified Advanced ColdFusion MX Developer AI-ES Aeronautics, Web Developer -Original Message- From: joe hobson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 12:51 PM To: CF-Talk Subject: Re: Saving empty (zero-length) files is prohibited. >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 i don't think it's a file extension issue because the file i'm attempting to upload does have an extension. i don't think it's a Mac issue because I've received this error as well from users on Win2k and WinNT, using IE. The file that i reproduced this with was selected, not typed in. Still stumped, but i think it's just a file system limitation on the Windows server side that i'll have to trap in a custom error message. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189580 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
Re: Saving empty (zero-length) files is prohibited.
>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 i don't think it's a file extension issue because the file i'm attempting to upload does have an extension. i don't think it's a Mac issue because I've received this error as well from users on Win2k and WinNT, using IE. The file that i reproduced this with was selected, not typed in. Still stumped, but i think it's just a file system limitation on the Windows server side that i'll have to trap in a custom error message. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189556 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
RE: Saving empty (zero-length) files is prohibited.
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
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:189276 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54