version 1.254, 2000/10/20 15:23:21
|
version 1.255, 2000/10/23 20:34:38
|
Line 3093 CHAR_T* content_type;
|
Line 3093 CHAR_T* content_type;
|
I'm copying here some of the functionality I use in the PUT |
I'm copying here some of the functionality I use in the PUT |
I need to put the common parts in another module */ |
I need to put the common parts in another module */ |
AM_GetFileSize (formdata, &filesize); |
AM_GetFileSize (formdata, &filesize); |
filesize = filesize + strlen ("w3c_annotate="); |
|
me->block_size = filesize; |
me->block_size = filesize; |
|
|
fileURL = HTParse (formdata, "file:/", PARSE_ALL); |
fileURL = HTParse (formdata, "file:/", PARSE_ALL); |
Line 3114 CHAR_T* content_type;
|
Line 3113 CHAR_T* content_type;
|
int i; |
int i; |
char c; |
char c; |
|
|
me->document = TtaGetMemory (me->block_size |
me->document = TtaGetMemory (me->block_size + 1); |
+ strlen ("w3c_annotate=") + 1); |
|
fp = fopen (formdata, "r"); |
fp = fopen (formdata, "r"); |
i = 0; |
i = 0; |
strcpy (me->document, "w3c_annotate="); |
|
c = getc (fp); |
c = getc (fp); |
i = strlen(me->document); |
|
while (!feof (fp)) |
while (!feof (fp)) |
{ |
{ |
me->document[i++] = c; |
me->document[i++] = c; |