Skip to content

Commit

Permalink
1. set charset to utf8 2. add mutilple support for file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
binbyu committed Oct 2, 2018
1 parent b5ea35d commit e6434ed
Show file tree
Hide file tree
Showing 3 changed files with 403 additions and 243 deletions.
9 changes: 5 additions & 4 deletions httpd/event.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef __EVENT_H__
#define __EVENT_H__

#define BOUNDARY_MAX_LEN 64
typedef enum
{
EV_UNKNOWN = 0x00,
Expand All @@ -12,17 +13,17 @@ typedef enum

typedef enum
{
evIdle = 0,
evBusy,
evFinish
EV_IDLE = 0,
EV_BUSY,
EV_FINISH
} event_status_t;

typedef struct
{
char file[MAX_PATH];
char boundary[BOUNDARY_MAX_LEN];
uint32_t total;
uint32_t offset;
uint32_t tail;
uint32_t size;
FILE *fp; // fixed fopen EACCES error. just for write file
char data[1];
Expand Down
Loading

0 comments on commit e6434ed

Please sign in to comment.