#include "webcit.h"
-struct uploaded_file {
- char id[64];
- char filename[256];
- char content_type[256];
- long length;
- FILE *fp;
-};
-
Array *upload_list = NULL; // all files uploaded to this webcit instance
pthread_mutex_t upload_list_mutex = PTHREAD_MUTEX_INITIALIZER; // Lock it before modifying
}
-// DAV delete an uploaded item
-void dav_delete_upload(struct http_transaction *h, struct ctdlsession *c, struct uploaded_file this_one) {
+// delete an uploaded item
+void delete_upload(struct uploaded_file this_one) {
int i;
struct uploaded_file *u;
}
}
pthread_mutex_unlock(&upload_list_mutex);
+}
+
+// DAV delete an uploaded item
+void dav_delete_upload(struct http_transaction *h, struct ctdlsession *c, struct uploaded_file this_one) {
+ delete_upload(this_one);
do_204(h);
}
// If we get to this point, the client requested an action we don't know how to perform.
do_404(h);
-}
\ No newline at end of file
+}