Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uploading image file to web server
Message
 
To
30/09/1998 14:21:39
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00142442
Message ID:
00143680
Views:
27
>I don't think you'll find a way to do this. Giving a browser permission to send files from the disk to a site, just because the page says it should, is a huge security risk.

File Uploads are part of the HTML 3.2 and up spec... If you've
used it you know that you cannot prep the TYPE="FILE" fields
with a value - the value is ignored. It's also possible to
customize a multipart upload directly through low level HTTP
access from custom applications in which case you can directly
embed the content of a file into the request information.

It requires special code on the server to handle file uploads from a
browser. Basically standard form variables are sent URLEncoded to the
server. When a File is part of a form everything gets thrown into
a Multi-Part form which needs to be parsed differently.

Not many tools support this, because it's completely different from
the URL Encoded form parsing. In addition, the server component
must support binary data processing which most tools don't <s>...

I know firsthand, because when I implemented the uploads in
Web Connection it took quite a while to get all the little
inconsistencies worked out.

It works well, though and is hands down the best way to send
data to a server. File uploads beat standard encoded submission
because the content is not encoded - URLEncoding is typically
2 times larger (as much as 2.5 times larger for binary) than
the original content.

I'm wokring at integrating binaray multi-part forms into wwIPStuff
as well. That should make the client communication and file uploads
of the wwHTTPData class much more efficient than it is now.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform