This content has been marked as final. Show 4 replies
No, No, No, and No. Can't be done, no other way, No.
Commercial solutions exist, though. One of my favourites is Flash 8's support for file uploads. Google the web, and you'll be sure to find examples of Flash clients which can push files to a CF server.
bummer. I can't stand flash...
So I guess the only way is allow them to upload the file and then delete it if it is to large of a size. I can't believe nobody found a good solution to this...
And the again, the Adobe forum is painfully slow. I appreciate the extra resource, but geezzz... what did they do to this site.
Well the basic problem is that this is built into the stateless nature
of the HTTP/HTML standards. If you want this you need to use something
that does not use these standards, such as Flash/Flex.
> bummer. I can't stand flash...
> So I guess the only way is allow them to upload the file and then delete it if
> it is to large of a size. I can't believe nobody found a good solution to
> And the again, the Adobe forum is painfully slow. I appreciate the extra
> resource, but geezzz... what did they do to this site.
Ian is right. It doesnt matter what language you use, you are still limited to what http standards allow and do.
One thing you could try using is see what the cgi.content_length is of the file. It will check to see the size of the content header being passed to the page or code that doing your file upload.
YET this is not the most accurate or reliable way to check file size, AND it will only really work if you are uploading one file at a time. If you do multiple files, it will add them all up in one lump sum and you wont be able to tell individual file sizes.
Flash 8 is one of the better ways to do it client side, which is what you would be trying to acheive. ASFUSION has some great tutorials and working downloadable examples on doing Flash file uploads, and I believe that they check for file size and type prior to uploading