o******t 发帖数: 1144 | |
b****e 发帖数: 985 | 2 that's all for client side
【在 o******t 的大作中提到】 : After :
|
o******t 发帖数: 1144 | 3 So after I select a file and click the "submit", I can get
the filename, and what should I do next to really get the
file upload to webserver?
【在 b****e 的大作中提到】 : that's all for client side
|
c***y 发帖数: 16 | 4 你要编server端程序么?
如果你用的是perl,
那该文件名就是文件句柄,
你可以直接对其操作。
之后,所谓上载,
就只是文件的读存了。
【在 o******t 的大作中提到】 : So after I select a file and click the "submit", I can get : the filename, and what should I do next to really get the : file upload to webserver?
|
t**h 发帖数: 8 | 5
depends on which tool/language you use in your server-side
programming.
【在 o******t 的大作中提到】 : So after I select a file and click the "submit", I can get : the filename, and what should I do next to really get the : file upload to webserver?
|
f******y 发帖数: 14 | 6 我从网上扒下来的,语言是perl
#!/usr/local/bin/perl5.003
#
# File Upload Script Version 6.00
# Created by Jeff Carnahan j***[email protected]
# Created on: 4/8/95 Last Modified on: 01/23/98 23:06
# Scripts Archive:
http://www.terminalp.com/scripts/
#
# |
f******y 发帖数: 14 | 7 下面是c语言的,
你不必仔细看,这是cgihtml的一部分,你在网上搜索cgihtml,
保证可以搞到全部代码,
其实上在文件是非常基本的功能,网上肯定有,找就是了
int parse_form_encoded(llist* entries)
{
long content_length;
entrytype entry;
node* window;
FILE *uploadfile;
char *uploadfname, *tempstr, *boundary;
char *buffer = (char *)malloc(sizeof(char) * BUFSIZ + 1);
char *prevbuf = (char *)malloc(sizeof(char) + BUFSIZ + 1);
short isfile,done,start;
int i,j;
int bytesread,prevbytesread;
int buffersize;
int numentries = 0;
#ifdef WINDOWS
setmode(f
【在 t**h 的大作中提到】 : : depends on which tool/language you use in your server-side : programming.
|