Discussion:
Uploading big file to server
(too old to reply)
a***@gmail.com
2007-09-20 23:34:33 UTC
Permalink
Hi,

I have to write a client side application using winInet to upload big
files to server. After reading so many post and KB article I came to
conclusion that there must some thing ASP, CGI running on the server
to accept the file. Also realized that there are may way to write
WinInet application to upload data to server one of them is multipart/
form-data, and other without it. I found following 2 article related
to this.

1) http://support.microsoft.com/kb/177188/EN-US/
2) http://support.microsoft.com/kb/q244372/

But, before I explain the problem I am facing I have following
question to understand the upload correctly.

a) What is the difference between uploading using multipart/form-data
and and uploading without it?
b) Is there detail documentation exist which explain what need to be
done to upload big file on server, boteh on client and server side.
c) Which particular call is responsible for creating filename on the
server.

Currently I am using multipart/form-data example 2nd link above, with
minor modification, everything seems to be working on the client side
but I don't see any file created on the server side.

These are the four parameter I am passing in order to the given VB
test app.

sde.am.server.com
/cgi-bin/upload.cgi
C:\aaa\readme.txt
http://sde.am.server.com/upload/readme.txt

Can someone pls. advice me what I am doing wrong. This is the GCI
script running on the server.

<HTML>
<HEAD></HEAD>
<BODY>
<FORM ACTION="cgi-bin/upload.cgi" METHOD="post" ENCTYPE="multipart/
form-data">
Photo to Upload: <INPUT TYPE="file" NAME="file">
<br><br>
<INPUT TYPE="submit" NAME="Submit" VALUE="Submit Form">
</FORM>
</BODY>

</HTML>


Thanks,
Akhilesh
Kellie Fitton
2007-09-29 06:58:45 UTC
Permalink
Post by a***@gmail.com
Hi,
I have to write a client side application using winInet to upload big
files to server. After reading so many post and KB article I came to
conclusion that there must some thing ASP, CGI running on the server
to accept the file. Also realized that there are may way to write
WinInet application to upload data to server one of them is multipart/
form-data, and other without it. I found following 2 article related
to this.
1)http://support.microsoft.com/kb/177188/EN-US/
2)http://support.microsoft.com/kb/q244372/
But, before I explain the problem I am facing I have following
question to understand the upload correctly.
a) What is the difference between uploading using multipart/form-data
and and uploading without it?
b) Is there detail documentation exist which explain what need to be
done to upload big file on server, boteh on client and server side.
c) Which particular call is responsible for creating filename on the
server.
Currently I am using multipart/form-data example 2nd link above, with
minor modification, everything seems to be working on the client side
but I don't see any file created on the server side.
These are the four parameter I am passing in order to the given VB
test app.
sde.am.server.com
/cgi-bin/upload.cgi
C:\aaa\readme.txthttp://sde.am.server.com/upload/readme.txt
Can someone pls. advice me what I am doing wrong. This is the GCI
script running on the server.
<HTML>
<HEAD></HEAD>
<BODY>
<FORM ACTION="cgi-bin/upload.cgi" METHOD="post" ENCTYPE="multipart/
form-data">
Photo to Upload: <INPUT TYPE="file" NAME="file">
<br><br>
<INPUT TYPE="submit" NAME="Submit" VALUE="Submit Form">
</FORM>
</BODY>
</HTML>
Thanks,
Akhilesh
Hi,

Well, if you need to upload large files with the ability
to resume the upload if it fails, you should look at BITS,
(Background Intelligent Transfer Service). Also, in many
cases the function FtpPutFile() will work just fine for
uploading a large file, you can also use a POST request
to upload large files as well { HttpSendRequestEx() }.

http://www.microsoft.com/technet/community/newsgroups/bits_faq.mspx

Kellie.

Continue reading on narkive:
Loading...